/* ==========================================================
   Saqqa Realty Brokerage — site styles
   Tokens are derived from the logo blues.
   ========================================================== */
:root {
  --navy-900: #031a33;
  --navy-800: #04264a;
  --brand-deep: #05528f;   /* logo dark blue */
  --brand: #0594db;        /* logo bright blue */
  --brand-sky: #1ea3e3;    /* logo light blue */
  --ice: #eaf4fb;
  --sand: #f6f3ee;
  --paper: #ffffff;
  --ink: #0b1b2b;
  --ink-soft: #3d4f61;     /* 8:1 on white */
  --line: #dbe3ea;

  --font-display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif; /* headings: the same family as the body text, set bold */
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-6: 1.5rem; --space-8: 2rem; --space-12: 3rem; --space-16: 4rem;
  --space-24: 6rem; --space-32: 8rem;

  --radius: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(4, 38, 74, .06), 0 2px 8px rgba(4, 38, 74, .05);
  --shadow-md: 0 8px 30px rgba(4, 38, 74, .10);
  --shadow-lg: 0 24px 60px rgba(4, 38, 74, .18);

  --ease: cubic-bezier(.22, .8, .24, 1);
  --header-h: 76px;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65;
  color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -.03em; margin: 0 0 var(--space-4); color: var(--navy-800); text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.25rem); line-height: 1.08; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.3rem; letter-spacing: -.02em; line-height: 1.25; }
h4 { letter-spacing: -.01em; line-height: 1.3; }
p { margin: 0 0 var(--space-4); text-wrap: pretty; }
ul { padding: 0; margin: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy-800); color: #fff; padding: .75rem 1rem; border-radius: 8px; z-index: 1000; }
.skip-link:focus { left: 8px; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
@media (min-width: 768px) { .container { width: min(100% - 4rem, var(--container)); } }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--sand { background: var(--sand); }
.section--ice { background: var(--ice); }
.section--navy { background: var(--navy-800); color: #dce8f3; }
.section--navy h2, .section--navy h3 { color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-deep); margin-bottom: var(--space-4); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--brand); }
.section--navy .eyebrow, .hero .eyebrow { color: #8fd2f5; }
.section--navy .eyebrow::before, .hero .eyebrow::before { background: var(--brand-sky); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 62ch; }
.section--navy .lede { color: #c3d5e6; }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lede { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .8rem 1.6rem; border-radius: 999px; border: 1.5px solid transparent;
  font: 700 .95rem/1 var(--font-body); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
  touch-action: manipulation;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--brand-deep); color: #fff; box-shadow: 0 6px 18px rgba(5, 82, 143, .32); }
.btn--primary:hover { background: var(--navy-800); color: #fff; }
.btn--light { background: #fff; color: var(--navy-800); }
.btn--light:hover { background: var(--ice); color: var(--navy-800); }
.btn--ghost { background: transparent; color: var(--navy-800); border-color: var(--navy-800); }
.btn--ghost:hover { background: var(--navy-800); color: #fff; }
.btn--ghost-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(6px); }
.btn--ghost-light:hover { background: #fff; color: var(--navy-800); }
.link-arrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; text-decoration: none; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center; transition: background .3s var(--ease), box-shadow .3s var(--ease), height .3s var(--ease);
}
.site-header.is-solid, .site-header.always-solid { background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: #fff; }
.brand img { height: 46px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-body); }
.brand-text strong { font-weight: 800; font-size: 1.02rem; letter-spacing: .2em; }
.brand-text span { font-weight: 600; font-size: .6rem; letter-spacing: .38em; margin-top: 5px; opacity: .85; }
.site-header.is-solid .brand, .site-header.always-solid .brand { color: var(--ink); }
/* white mark backing for transparent header over photography */
.site-header:not(.is-solid):not(.always-solid) .brand img { filter: drop-shadow(0 2px 10px rgba(0,0,0,.25)); }

.nav-list { display: none; align-items: center; gap: .25rem; }
.nav-list a { display: block; padding: .6rem .85rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .93rem; color: rgba(255,255,255,.92); transition: background .2s, color .2s; }
.nav-list a:hover { background: rgba(255,255,255,.14); color: #fff; }
.site-header.is-solid .nav-list a, .site-header.always-solid .nav-list a { color: var(--ink-soft); }
.site-header.is-solid .nav-list a:hover, .site-header.always-solid .nav-list a:hover { background: var(--ice); color: var(--navy-800); }
.nav-list a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--brand-sky); border-radius: 0; }
.site-header.is-solid .nav-list a[aria-current="page"], .site-header.always-solid .nav-list a[aria-current="page"] { color: var(--brand-deep); }
.header-cta { display: none; }
.menu-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 48px; height: 48px; padding: 0 12px; background: transparent; border: 0; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.site-header.is-solid .menu-toggle span, .site-header.always-solid .menu-toggle span { background: var(--ink); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--navy-900); z-index: 99; padding: 1.5rem 1.5rem 3rem; overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; }
.mobile-nav.is-open { opacity: 1; transform: none; visibility: visible; }
.mobile-nav a { display: block; padding: 1rem 0; color: #fff; font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; font-size: 1.45rem; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.12); }
.mobile-nav .btn { margin-top: 2rem; width: 100%; font-family: var(--font-body); font-size: 1rem; border-bottom: 0; }

@media (min-width: 1040px) {
  .nav-list { display: flex; }
  .header-cta { display: inline-flex; min-height: 44px; padding-inline: 1.3rem; }
  .menu-toggle, .mobile-nav { display: none; }
  .site-header:not(.is-solid):not(.always-solid) .header-cta { background: #fff; color: var(--navy-800); box-shadow: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; color: #fff; background: var(--navy-900); overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media .ph { position: absolute; inset: 0; border-radius: 0; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(3,26,51,.55) 0%, rgba(3,26,51,.25) 35%, rgba(3,26,51,.88) 100%), linear-gradient(90deg, rgba(3,26,51,.55), transparent 65%); }
.hero__inner { padding-block: calc(var(--header-h) + 3rem) clamp(3rem, 7vw, 5rem); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero h1 em { font-style: normal; color: #8fd2f5; font-weight: inherit; }
.hero .lede { color: #d6e6f4; margin-bottom: var(--space-8); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__strip { margin-top: clamp(2.5rem, 6vw, 4rem); display: grid; gap: 1.25rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.22); }
.hero__strip li { display: flex; gap: .75rem; align-items: center; font-size: .95rem; color: #d6e6f4; }
.hero__strip svg { width: 22px; height: 22px; color: var(--brand-sky); flex: none; }
@media (min-width: 768px) { .hero__strip { grid-template-columns: repeat(4, auto); justify-content: space-between; } }

/* ---------- Image placeholders (swap for real photography) ---------- */
.ph { position: relative; display: block; width: 100%; background: linear-gradient(145deg, var(--brand-deep), var(--navy-800)); overflow: hidden; border-radius: var(--radius); }
.ph svg.skyline { position: absolute; inset: auto 0 0 0; width: 100%; height: 60%; color: rgba(255,255,255,.12); }
.ph::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 75% 20%, rgba(30,163,227,.55), transparent 55%); }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph__tag { position: absolute; left: .9rem; top: .9rem; z-index: 2; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .35rem .6rem; border-radius: 6px; background: rgba(255,255,255,.92); color: var(--navy-800); }
.ph--sky { background: linear-gradient(145deg, var(--brand), var(--brand-deep)); }
.ph--sand { background: linear-gradient(145deg, #9db4c8, #55728d); }
.ph--16x10 { aspect-ratio: 16/10; } .ph--4x3 { aspect-ratio: 4/3; } .ph--4x5 { aspect-ratio: 4/5; } .ph--1x1 { aspect-ratio: 1; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2rem); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card .icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--ice); color: var(--brand-deep); margin-bottom: 1.25rem; }
.card .icon svg { width: 26px; height: 26px; }
.card p { color: var(--ink-soft); margin-bottom: 1rem; }
.card--link { text-decoration: none; color: inherit; display: block; }
.card--link:hover { color: inherit; }

.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--reverse > :first-child { order: 2; } }
.checklist li { position: relative; padding-left: 2rem; margin-bottom: .75rem; color: var(--ink-soft); }
.checklist li::before { content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 20px; border-radius: 50%; background: var(--ice) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2305528f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center/14px no-repeat; }
.section--navy .checklist li { color: #c3d5e6; }
.section--navy .checklist li::before { background-color: rgba(255,255,255,.12); }

.values { counter-reset: v; }
.values li { counter-increment: v; padding: 1.5rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; }
.values li::before { content: counter(v, decimal-leading-zero); font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--brand); }
.values h3 { margin-bottom: .25rem; }
.values p { margin: 0; color: var(--ink-soft); }

/* Steps */
.steps { display: grid; gap: 1.25rem; counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: s; position: relative; padding: 1.5rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-deep); color: #fff; font-weight: 700; margin-bottom: 1rem; }
.steps p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* Listings */
.listing { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.listing:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.listing .ph { border-radius: 0; }
.listing__body { padding: 1.25rem 1.5rem 1.5rem; }
.listing__price { font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; font-size: 1.5rem; color: var(--navy-800); font-variant-numeric: tabular-nums; }
.listing__meta { display: flex; gap: 1rem; color: var(--ink-soft); font-size: .92rem; margin: .5rem 0 0; }
.chip { display: inline-block; padding: .3rem .75rem; border-radius: 999px; background: var(--ice); color: var(--brand-deep); font-size: .78rem; font-weight: 700; letter-spacing: .04em; }
.notice { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem 1.5rem; border-radius: var(--radius); background: var(--ice); border: 1px dashed var(--brand-sky); color: var(--ink-soft); font-size: .95rem; }
.notice svg { width: 22px; height: 22px; flex: none; color: var(--brand-deep); margin-top: 2px; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filters button { min-height: 44px; padding: .5rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: 600 .92rem var(--font-body); color: var(--ink-soft); cursor: pointer; transition: all .2s; }
.filters button:hover { border-color: var(--brand-deep); color: var(--brand-deep); }
.filters button[aria-pressed="true"] { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }

/* Agents */
.agent { text-align: left; }
.agent .ph { margin-bottom: 1.1rem; }
.agent h3 { margin-bottom: .15rem; }
.agent__role { color: var(--brand-deep); font-weight: 600; font-size: .92rem; margin-bottom: .5rem; }

/* Community */
.community { position: relative; display: block; min-height: 280px; border-radius: var(--radius-lg); overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; }
.community .ph { position: absolute; inset: 0; border-radius: 0; z-index: -2; transition: transform .8s var(--ease); }
.community:hover .ph { transform: scale(1.05); }
.community::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(3,26,51,.85)); }
.community__body { position: absolute; inset: auto 0 0 0; padding: 1.5rem; }
.community h3 { color: #fff; margin: 0 0 .25rem; }
.community p { margin: 0; color: #d6e6f4; font-size: .95rem; }
.community:hover { color: #fff; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--brand-deep), var(--navy-800) 70%); color: #fff; border-radius: var(--radius-lg); padding: clamp(2.5rem, 6vw, 4.5rem); display: grid; gap: 2rem; align-items: center; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; right: -80px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(30,163,227,.55), transparent 65%); z-index: -1; }
.cta-band h2 { color: #fff; margin-bottom: .5rem; }
.cta-band p { color: #d0e2f2; margin: 0; max-width: 52ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.4fr auto; } }

/* Page hero (inner pages) */
.page-hero { background: linear-gradient(160deg, var(--navy-800), var(--brand-deep)); color: #fff; padding: calc(var(--header-h) + clamp(3rem, 7vw, 5.5rem)) 0 clamp(3rem, 6vw, 5rem); position: relative; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; right: -10%; top: -40%; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(30,163,227,.45), transparent 65%); z-index: -1; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.5rem); max-width: 19ch; }
.page-hero .lede { color: #cfe1f1; }
.page-hero .eyebrow { color: #8fd2f5; } .page-hero .eyebrow::before { background: var(--brand-sky); }
.breadcrumb { font-size: .85rem; margin-bottom: 1.25rem; color: #a9c6de; }
.breadcrumb a { color: #cfe1f1; }

/* Forms */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .4rem; color: var(--navy-800); }
.field label .req { color: #b42318; margin-left: 2px; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: .75rem 1rem; border: 1.5px solid #b9c6d2; border-radius: 12px; font: inherit; font-size: 1rem; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-deep); box-shadow: 0 0 0 4px rgba(5,148,219,.2); }
.field .hint { font-size: .85rem; color: var(--ink-soft); margin-top: .3rem; }
.field .error { display: none; font-size: .85rem; color: #b42318; margin-top: .3rem; font-weight: 600; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #b42318; }
.field.invalid .error { display: block; }
.form-status { padding: 1rem 1.25rem; border-radius: 12px; background: #e7f6ec; color: #0b5d2a; font-weight: 600; }
.form-status[hidden] { display: none; }
.contact-panel { background: var(--ice); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.25rem); }
.contact-list li { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid rgba(5,82,143,.15); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list svg { width: 22px; height: 22px; color: var(--brand-deep); flex: none; margin-top: 3px; }
.contact-list strong { display: block; color: var(--navy-800); }
.contact-list span { color: var(--ink-soft); }
.ph-text { background: #fff8d6; padding: 0 .3em; border-radius: 4px; color: #5c4a00; font-weight: 600; }

/* Footer */
.site-footer { background: var(--navy-900); color: #b5c9dc; padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.site-footer h4 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; font-weight: 700; }
.site-footer a { color: #b5c9dc; text-decoration: none; display: inline-block; padding: .3rem 0; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .88rem; }

/* Sticky mobile CTA */
.mobile-cta { position: fixed; inset: auto 0 0 0; z-index: 90; display: flex; gap: .5rem; padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); box-shadow: 0 -1px 0 var(--line); transform: translateY(110%); transition: transform .35s var(--ease); }
.mobile-cta.is-visible { transform: none; }
.mobile-cta .btn { flex: 1; min-height: 46px; padding-inline: 1rem; }
@media (min-width: 1040px) { .mobile-cta { display: none; } }
@media (max-width: 1039px) { body { padding-bottom: 0; } .site-footer { padding-bottom: 6rem; } }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   Page components (added with the HTML build)
   ========================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.section--tight { padding-block: clamp(2.5rem, 6vw, 5rem); }
.h3 { font-size: 1.3rem; letter-spacing: -.02em; line-height: 1.25; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.split--top { align-items: start; }
.split .checklist { margin: 1.5rem 0 1.75rem; }
.split > div > .link-arrow { margin-top: .5rem; }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.25rem; }
.section-head--row h2 { margin: 0; }
.section-head--row .eyebrow { margin-bottom: .75rem; }

/* Overlapping photo pair */
.stack-photos { position: relative; padding: 0 0 clamp(3rem, 8vw, 5rem) 0; }
.stack-photos > .ph:first-child { width: 82%; margin-left: auto; box-shadow: var(--shadow-md); }
.stack-photos__inset { position: absolute !important; left: 0; bottom: 0; width: 52% !important; border: 6px solid #fff; box-shadow: var(--shadow-lg); }

/* Pillars on navy */
.pillars { display: grid; gap: 1px; background: rgba(255,255,255,.12); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 640px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .pillars { grid-template-columns: repeat(4, 1fr); } }
.pillar { background: var(--navy-800); padding: clamp(1.5rem, 3vw, 2.25rem); transition: background .35s var(--ease); }
.pillar:hover { background: #062f5a; }
.pillar__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: rgba(30,163,227,.16); color: #8fd2f5; margin-bottom: 1.25rem; }
.pillar__icon svg { width: 24px; height: 24px; }
.pillar h3 { font-size: 1.25rem; }
.pillar p { color: #c3d5e6; margin: 0; font-size: .98rem; }

/* Community mosaic */
.community-grid { display: grid; gap: clamp(1rem, 2.5vw, 1.5rem); }
@media (min-width: 800px) {
  .community-grid { grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; min-height: 560px; }
  .community--lg { grid-row: span 2; }
}
.community--lg h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }

/* Listings */
.listing__title { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin: .35rem 0 0; color: var(--ink); }
.listing__price { margin: .85rem 0 0; }
.listing[hidden] { display: none; }
.notice { margin-top: 2rem; }
.notice--top { margin: 0 0 2rem; }
.notice a { font-weight: 700; }

/* Sub navigation on long pages */
.subnav { position: sticky; top: var(--header-h); z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; padding-block: .5rem; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; white-space: nowrap; padding: .55rem 1rem; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--ink-soft); text-decoration: none; }
.subnav a:hover { background: var(--ice); color: var(--navy-800); }
.subnav ~ .section { scroll-margin-top: calc(var(--header-h) + 60px); }

/* Chips list */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; }

/* Agents */
.ph--portrait { display: grid; place-items: center; background: linear-gradient(160deg, var(--ice), #cfe3f2); }
.ph--portrait::before { display: none; }
.portrait-icon { width: 34%; height: auto; color: rgba(5,82,143,.35); stroke-width: 1.2; }
.agent__bio { color: var(--ink-soft); font-size: .95rem; }
.agent__links a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; text-decoration: none; min-height: 44px; }
.agent__links svg { width: 16px; height: 16px; }
.agent-feature { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1rem, 3vw, 2rem); }
@media (min-width: 760px) { .agent-feature { grid-template-columns: minmax(220px, 320px) 1fr; } }
.agent-feature h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .25rem; }
.contact-list--inline { display: flex; flex-wrap: wrap; gap: 0 2rem; }
.contact-list--inline li { border: 0; padding: .5rem 0; }

/* Contact form extras */
.contact-layout { grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: 1.4fr 1fr; } }
.field--check { display: grid; grid-template-columns: auto 1fr; gap: .25rem .75rem; align-items: start; }
.field--check input { width: 22px; height: 22px; min-height: 0; margin-top: 2px; accent-color: var(--brand-deep); }
.field--check label { font-weight: 500; color: var(--ink-soft); margin: 0; }
.field--check .error { grid-column: 2; }
.form .btn { justify-self: start; }
.form > .hint { margin: 0; font-size: .85rem; color: var(--ink-soft); }
.contact-panel h2 { margin-bottom: .5rem; }
.contact-panel__note { margin: 1rem 0 0; font-size: .92rem; color: var(--ink-soft); }
.form-status.is-error { background: #fdecea; color: #8a1c13; }

/* Footer extras */
.site-footer .brand img { height: 46px; }
.footer-slogan { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; font-size: 1.2rem; color: #fff; margin-bottom: .75rem; }
.footer-contact li { display: flex; gap: .65rem; align-items: flex-start; padding: .3rem 0; }
.footer-contact svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--brand-sky); }
.site-footer .ph-text { background: rgba(255,248,214,.12); color: #ffe9a3; }
.socials { display: flex; gap: .5rem; margin-top: 1rem; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); transition: background .2s, border-color .2s; }
.socials a:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); }
.socials svg { width: 18px; height: 18px; }

/* Hero: gentle zoom-in on load */
.hero__media img { transform: scale(1.06); animation: hero-zoom 2.4s var(--ease) forwards; }
@keyframes hero-zoom { to { transform: scale(1); } }
.ph-text { white-space: normal; }
ol.steps, ol.values { list-style: none; padding: 0; margin: 0; }
.site-footer a.brand { display: inline-flex; padding: 0; }
.hero::after { background: linear-gradient(180deg, rgba(3,26,51,.55) 0%, rgba(3,26,51,.2) 35%, rgba(3,26,51,.9) 100%), linear-gradient(90deg, rgba(3,26,51,.75), rgba(3,26,51,.25) 60%, transparent 85%); }
.mobile-nav a.btn--light { color: var(--navy-800); font-size: 1rem; padding-block: 1rem; }
@media (max-width: 767px) { .hero__strip { grid-template-columns: 1fr 1fr; gap: .9rem 1rem; } .hero__strip li { font-size: .88rem; } }

/* ---------- Real-content additions ---------- */
.team-strip { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
@media (min-width: 640px) { .team-strip { grid-template-columns: repeat(3, 1fr); } }
.team-strip__item { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; background: var(--ice); aspect-ratio: 4/5; isolation: isolate; }
.team-strip__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; transition: transform .8s var(--ease); z-index: -2; }
.team-strip__item::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 55%, rgba(3,26,51,.88)); }
.team-strip__item:hover img { transform: scale(1.04); }
.team-strip__item span { position: absolute; inset: auto 0 0 0; padding: 1.25rem 1.5rem; color: #d6e6f4; font-size: .9rem; }
.team-strip__item strong { display: block; color: #fff; font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; font-size: 1.35rem; }
.ph--headshot { background: var(--ice); }
.ph--headshot::before { display: none; }
.ph--headshot img { object-position: 50% 15%; }
.agent__langs { font-size: .9rem; font-weight: 600; color: var(--navy-800); }
.agent-feature__name { font-size: clamp(2rem, 4vw, 3rem); }
.agent-feature .eyebrow { margin-bottom: .5rem; }
.on-navy { color: #fff; }
.mobile-nav a.mobile-nav__phone { display: flex; align-items: center; justify-content: center; gap: .5rem; font-family: var(--font-body); font-size: 1rem; border: 0; color: #cfe1f1; }
.mobile-nav__phone svg { width: 18px; height: 18px; }
.mobile-cta .btn svg { width: 18px; height: 18px; }
.mobile-cta .btn:hover svg { transform: none; }
.badge-canadian { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .85rem; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.badge-canadian svg { width: 16px; height: 16px; color: #ff6b6b; }
.footer-contact a { padding: 0; }
.contact-list a { font-weight: 600; }
.socials--dark { margin: .5rem 0 0; }
.socials--dark a { color: var(--brand-deep); border-color: rgba(5,82,143,.25); }
.socials--dark a:hover { background: #fff; border-color: var(--brand-deep); }
.conditional { display: grid; gap: 1.1rem; padding: 1.25rem; border-radius: 14px; background: var(--ice); }
.conditional[hidden] { display: none; }
.choice-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice-group legend { font-weight: 700; font-size: .9rem; color: var(--navy-800); margin-bottom: .5rem; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice { position: relative; display: inline-flex; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1rem; border: 1.5px solid #b9c6d2; border-radius: 999px; background: #fff; font-size: .92rem; font-weight: 600; color: var(--ink-soft); transition: background .2s, border-color .2s, color .2s; }
.choice:hover span { border-color: var(--brand-deep); color: var(--brand-deep); }
.choice input:checked + span { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }

/* ==========================================================
   Platform: search, map, property pages
   ========================================================== */
.btn--sm { min-height: 44px; padding: .5rem 1rem; font-size: .9rem; }
.btn--sm svg { width: 16px; height: 16px; }
.btn--block { width: 100%; justify-content: center; }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--brand-deep); color: #fff; font-size: .72rem; font-weight: 800; }
.badge[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice--demo { background: #fff8e6; border: 1px solid #f0c75e; color: #5c4400; border-style: solid; }
.notice--demo svg { color: #a26b00; }
.notice[hidden] { display: none; }

/* Homepage hero search */
.hero-search { display: flex; align-items: center; gap: .5rem; margin-top: 1.5rem; max-width: 640px; background: #fff; border-radius: 999px; padding: .4rem .4rem .4rem 1.1rem; box-shadow: var(--shadow-lg); }
.hero-search svg { width: 20px; height: 20px; color: var(--brand-deep); flex: none; }
.hero-search input { flex: 1; min-width: 0; border: 0; font: inherit; font-size: 1rem; color: var(--ink); background: transparent; min-height: 44px; }
.hero-search input:focus { outline: none; }
.hero-search:focus-within { box-shadow: var(--shadow-lg), 0 0 0 4px rgba(30,163,227,.45); }
.hero-search .btn { min-height: 46px; }

/* Search app shell */
.search-app { padding-top: var(--header-h); background: #fff; }
body:has([data-search-app]) .mobile-cta { display: none; }
.search-bar { position: sticky; top: var(--header-h); z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.search-bar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding-block: .75rem; width: min(100% - 2rem, 1600px); }
.search-field { position: relative; flex: 1 1 240px; min-width: 0; }
.search-field > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-soft); pointer-events: none; }
.search-field input { width: 100%; min-height: 46px; padding: .6rem 1rem .6rem 2.6rem; border: 1.5px solid #b9c6d2; border-radius: 999px; font: inherit; font-size: 1rem; color: var(--ink); }
.search-field input:focus { outline: none; border-color: var(--brand-deep); box-shadow: 0 0 0 4px rgba(5,148,219,.2); }
.suggest { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md); padding: .35rem; max-height: 60vh; overflow: auto; }
.suggest li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem .8rem; border-radius: 10px; cursor: pointer; font-size: .95rem; }
.suggest li span { color: var(--ink-soft); font-size: .85rem; text-align: right; }
.suggest li:hover, .suggest li[aria-selected="true"] { background: var(--ice); }
.seg { display: inline-flex; background: var(--ice); border-radius: 999px; padding: 3px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem; border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--ink-soft); }
.seg input:checked + span { background: var(--brand-deep); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.seg[hidden] { display: none; }
[data-residential-only][hidden], [data-commercial-only][hidden], .search-more__types .choice[hidden] { display: none !important; }
.seg--use span { min-height: 36px; padding: 0 .85rem; font-size: .85rem; white-space: nowrap; }
.home-widget .seg--use { margin-top: .75rem; background: #fff; border: 1px solid var(--line); }
.home-widget__empty { grid-column: 1 / -1; margin: 0; padding: 1.25rem 0; color: var(--ink-soft); }
.search-bar__quick { display: flex; gap: .5rem; }
.mini { display: inline-flex; flex-direction: column; gap: 2px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.mini select { min-height: 40px; padding: .3rem 2rem .3rem .75rem; border: 1.5px solid var(--line); border-radius: 10px; font: 600 .9rem var(--font-body); color: var(--ink); background: #fff; text-transform: none; letter-spacing: 0; cursor: pointer; }
.mini select:focus { outline: none; border-color: var(--brand-deep); box-shadow: 0 0 0 3px rgba(5,148,219,.2); }
.mini--inline { flex-direction: row; align-items: center; gap: .5rem; }
.search-more { border-top: 1px solid var(--line); background: var(--sand); }
.search-more[hidden] { display: none; }
.search-more__grid { display: grid; gap: 1rem 1.25rem; padding-block: 1.1rem; width: min(100% - 2rem, 1600px); grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); align-items: end; }
.search-more__types { grid-column: 1 / -1; border: 0; padding: 0; margin: 0; }
.search-more__types legend { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .4rem; }
.search-more .choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice--inline { align-self: center; }
.search-more__actions { display: flex; gap: .5rem; justify-content: flex-end; grid-column: 1 / -1; }

.search-body { position: relative; display: grid; }
.results { padding: 1.25rem 1rem 6rem; min-width: 0; }
.results__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: .75rem; margin-bottom: 1rem; }
.results__title { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 0; }
.results__count { margin: .2rem 0 0; color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.results .notice { margin-bottom: 1rem; }
.results__empty, .results__error { text-align: center; padding: 3rem 1rem; border: 1px dashed var(--line); border-radius: var(--radius); }
.results__empty[hidden], .results__error[hidden] { display: none; }
.attribution { font-size: .78rem; color: var(--ink-soft); margin-top: 1.5rem; line-height: 1.5; }
.result-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.result-grid.is-loading { opacity: .55; transition: opacity .2s; }
.result-grid--3 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

/* Listing card */
.lcard { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .2s; }
.lcard:hover, .lcard.is-hot { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--brand-sky); }
.lcard__link { display: block; color: inherit; text-decoration: none; }
.lcard__link:hover { color: inherit; }
.lcard__media { position: relative; aspect-ratio: 3 / 2; background: var(--ice); overflow: hidden; }
.lcard__media img { width: 100%; height: 100%; object-fit: cover; }
.lcard__nophoto { display: grid; place-items: center; height: 100%; color: var(--ink-soft); font-size: .85rem; }
.lcard__tag, .lcard__demo { position: absolute; top: 10px; padding: .2rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .04em; }
.lcard__tag { left: 10px; background: rgba(4,38,74,.88); color: #fff; }
.lcard__demo { right: 10px; background: #fff8e6; color: #5c4400; border: 1px solid #f0c75e; }
.lcard__body { padding: .85rem 1rem 1rem; }
.lcard__price { font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; font-size: 1.4rem; color: var(--navy-800); margin: 0 0 .15rem; font-variant-numeric: tabular-nums; }
.lcard__title { font-family: var(--font-body); font-size: 1rem; font-weight: 700; margin: 0; color: var(--ink); }
.lcard__city { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.lcard__meta { display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin: .5rem 0 0; font-size: .88rem; font-weight: 600; color: var(--ink); }
.lcard__office { margin: .35rem 0 0; font-size: .88rem; color: var(--ink); }
.lcard__mls { margin: .35rem 0 0; font-size: .75rem; color: var(--ink-soft); }
.lcard--skeleton .lcard__media { animation: pulse 1.2s ease-in-out infinite; }
.lcard--skeleton .lcard__body span { display: block; height: 12px; margin: .5rem 0; border-radius: 6px; background: var(--ice); animation: pulse 1.2s ease-in-out infinite; }
.lcard--skeleton .lcard__body span:nth-child(2) { width: 70%; } .lcard--skeleton .lcard__body span:nth-child(3) { width: 45%; }
@keyframes pulse { 50% { opacity: .5; } }
.grid[data-featured] .lcard__price { font-size: 1.5rem; }

.pager { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; margin-top: 1.5rem; }
.pager button { min-width: 44px; min-height: 44px; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; font: 700 .95rem var(--font-body); color: var(--ink); cursor: pointer; }
.pager button:hover:not(:disabled) { border-color: var(--brand-deep); color: var(--brand-deep); }
.pager button[aria-current="page"] { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.pager button:disabled { opacity: .4; cursor: default; }
.pager__gap { align-self: center; color: var(--ink-soft); }

/* Map pane */
.map-pane { position: relative; display: none; background: var(--ice); }
.map-pane > .map { position: absolute; inset: 0; }
.map-tools { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .5rem; z-index: 2; }
.map-tools__auto { display: inline-flex; align-items: center; gap: .5rem; background: #fff; padding: .45rem .85rem; border-radius: 999px; box-shadow: var(--shadow-sm); font-size: .85rem; font-weight: 700; color: var(--ink); cursor: pointer; white-space: nowrap; }
.map-tools__auto input { width: 18px; height: 18px; accent-color: var(--brand-deep); }
.map-tools .btn[hidden] { display: none; }
.map-draw { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: .5rem; z-index: 2; }
.map-draw .btn { box-shadow: var(--shadow-sm); }
.map-draw .btn[aria-pressed="true"] { background: var(--navy-800); color: #fff; }
.map-draw .btn[hidden] { display: none; }
.map-draw__hint { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; margin: 0; background: rgba(4,38,74,.92); color: #fff; padding: .6rem .9rem; border-radius: 12px; font-size: .88rem; }
.map-draw__hint[hidden] { display: none; }
.map-status { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; background: #fff; padding: 1rem 1.25rem; border-radius: 14px; box-shadow: var(--shadow-md); max-width: 320px; text-align: center; font-weight: 600; }
.map-status[hidden] { display: none; }
.map-preview { position: absolute; z-index: 4; left: 12px; bottom: 12px; width: min(320px, calc(100% - 24px)); }
.map-preview[hidden] { display: none; }
.preview { position: relative; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.preview .lcard { border: 0; border-radius: 0; }
.preview .lcard:hover { transform: none; box-shadow: none; }
.preview--loading { padding: 1.5rem; text-align: center; color: var(--ink-soft); }
.preview__close { position: absolute; top: 8px; right: 8px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); font-size: 1.4rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow-sm); }

.pin { cursor: pointer; font: 800 .8rem var(--font-body); border: 0; transition: transform .15s var(--ease), background .15s; }
.pin--price { padding: .3rem .55rem; border-radius: 999px; background: var(--brand-deep); color: #fff; box-shadow: 0 2px 8px rgba(4,38,74,.35); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pin--price::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; background: inherit; transform: translateX(-50%) rotate(45deg); z-index: -1; }
.pin--lease { background: #0b7a5c; }
.pin--price:hover, .pin--price.is-hot, .pin--price.is-active { background: var(--navy-900); transform: scale(1.12); z-index: 5; }
.pin--cluster { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(5,82,143,.92); color: #fff; box-shadow: 0 0 0 6px rgba(5,148,219,.25); }
.pin--md { width: 50px; height: 50px; font-size: .88rem; }
.pin--lg { width: 60px; height: 60px; font-size: .95rem; }
.pin--cluster:hover { transform: scale(1.08); background: var(--navy-800); }
.pin:focus-visible { outline: 3px solid #fff; box-shadow: 0 0 0 6px var(--brand); }

.view-toggle { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50; display: flex; background: var(--navy-800); border-radius: 999px; padding: 4px; box-shadow: var(--shadow-lg); }
.view-toggle button { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 1.1rem; border: 0; border-radius: 999px; background: transparent; color: #cfe1f1; font: 700 .9rem var(--font-body); cursor: pointer; }
.view-toggle button svg { width: 18px; height: 18px; }
.view-toggle button[aria-pressed="true"] { background: #fff; color: var(--navy-800); }

/* Mobile: one view at a time */
.search-body[data-view="map"] .results { display: none; }
.search-body[data-view="map"] .map-pane { display: block; height: calc(100dvh - var(--header-h) - var(--bar-h, 130px)); min-height: 420px; }
@media (max-width: 767px) {
  .search-bar__inner { gap: .5rem; }
  .search-field { flex-basis: 100%; }
  .search-bar__quick { order: 5; flex-basis: 100%; overflow-x: auto; padding-bottom: 2px; }
  .search-bar__quick .mini { flex: 0 0 auto; }
}
@media (min-width: 1024px) {
  .search-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); height: calc(100dvh - var(--header-h) - var(--bar-h, 70px)); }
  .results { overflow-y: auto; padding: 1.25rem 1.5rem 3rem; }
  .map-pane, .search-body[data-view="map"] .map-pane { display: block; height: auto; }
  .search-body[data-view="map"] .results { display: block; }
  .view-toggle { display: none; }
}
@media (min-width: 1440px) { .search-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* Property page */
.prop-head { padding-top: calc(var(--header-h) + 1.25rem); }
.breadcrumb--dark { color: var(--ink-soft); }
.breadcrumb--dark a { color: var(--brand-deep); }
.section--flush { padding-block: 0 4rem; }
.prop-layout { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .prop-layout.prop-layout { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } .prop-aside { position: sticky; top: calc(var(--header-h) + 1rem); } }
.gallery__main { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden; background: var(--ice); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--navy-800); font-size: 2rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow-sm); }
.gallery__nav--prev { left: 12px; } .gallery__nav--next { right: 12px; }
.gallery__count { position: absolute; right: 12px; bottom: 12px; background: rgba(4,38,74,.85); color: #fff; padding: .2rem .65rem; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.gallery__thumbs { display: flex; gap: .5rem; margin-top: .6rem; overflow-x: auto; padding-bottom: 4px; }
.gallery__thumbs button { flex: 0 0 auto; width: 96px; aspect-ratio: 3 / 2; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--ice); opacity: .75; }
.gallery__thumbs button[aria-current="true"] { border-color: var(--brand-deep); opacity: 1; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery--empty { display: grid; place-items: center; aspect-ratio: 16 / 7; border-radius: var(--radius-lg); background: var(--ice); color: var(--ink-soft); }
.prop-title { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin: 1.75rem 0 1rem; }
.prop-title h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: .25rem; }
.prop-title__city { color: var(--ink-soft); margin: 0; font-weight: 600; }
.prop-title__price { text-align: right; }
.prop-title__price strong { display: block; font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; font-size: clamp(1.8rem, 3.4vw, 2.5rem); color: var(--navy-800); font-variant-numeric: tabular-nums; }
.prop-title__price span { font-size: .85rem; color: var(--ink-soft); }
.prop-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 1.5rem; }
.prop-actions__status { font-size: .9rem; color: var(--ink-soft); }
.prop-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0; background: #fff; border: 1px solid var(--line); border-right: 0; border-bottom: 0; border-radius: var(--radius); overflow: hidden; margin: 0 0 2rem; }
.prop-facts div { background: #fff; padding: .85rem 1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prop-facts dt { font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); }
.prop-facts dd { margin: .15rem 0 0; font-weight: 700; color: var(--ink); }
.prop-section { padding-block: 1.5rem; border-top: 1px solid var(--line); }
.prop-section[hidden] { display: none; }
.prop-remarks { white-space: pre-line; max-width: 72ch; }
.prop-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .4rem 1rem; }
.prop-features li { padding-left: 1.4rem; position: relative; }
.prop-features li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.prop-map { height: 320px; border-radius: var(--radius); overflow: hidden; background: var(--ice); }
.calc__grid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.calc label { display: flex; flex-direction: column; gap: .3rem; font-weight: 700; font-size: .85rem; color: var(--navy-800); }
.calc input, .calc select { min-height: 46px; padding: .5rem .8rem; border: 1.5px solid #b9c6d2; border-radius: 10px; font: inherit; font-weight: 600; color: var(--ink); }
.calc__result { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 1rem 0 .5rem; padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--ice); }
.calc__result strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--navy-800); font-weight: 800; letter-spacing: -.02em; }
.prop-disclaimer p { font-size: .82rem; color: var(--ink-soft); }
.form--card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-md); }
.form--card textarea { min-height: 90px; }
.prop-aside__call { text-align: center; margin-top: 1rem; color: var(--ink-soft); }
.narrow { max-width: 760px; padding-top: calc(var(--header-h) + 2rem); }
@media (max-width: 640px) { .prop-title__price { text-align: left; } }
@media (max-width: 767px) {
  .map-tools { top: 64px; left: 12px; transform: none; align-items: flex-start; }
  .map-preview { bottom: 76px; }
}
.prop-layout { grid-template-columns: minmax(0, 1fr); }
.prop-main, .prop-aside { min-width: 0; }
.prop-head .notice { display: block; }

/* ==========================================================
   Accounts, saving, alerts
   ========================================================== */
.header-account { display: none; align-items: center; gap: .4rem; min-height: 44px; padding: 0 .6rem; margin-right: .25rem; font-weight: 700; font-size: .92rem; text-decoration: none; color: #fff; border-radius: 999px; }
.header-account svg { width: 20px; height: 20px; }
.site-header.is-solid .header-account, .site-header.always-solid .header-account { color: var(--ink-soft); }
.header-account:hover { background: rgba(255,255,255,.12); color: #fff; }
.site-header.is-solid .header-account:hover, .site-header.always-solid .header-account:hover { background: var(--ice); color: var(--navy-800); }
@media (min-width: 1040px) { .header-account { display: inline-flex; } }

.lcard { position: relative; }
.lcard__save { position: absolute; z-index: 2; top: 8px; right: 8px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .15s var(--ease); }
.lcard__save svg { width: 22px; height: 22px; fill: none; stroke: var(--navy-800); stroke-width: 2; }
.lcard__save[aria-pressed="true"] svg { fill: #d1344b; stroke: #d1344b; }
.lcard__save:hover { transform: scale(1.08); }
.lcard__demo { right: auto; left: 10px; top: auto; bottom: 10px; }
.btn--save svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.btn--save[aria-pressed="true"] { border-color: #d1344b; color: #b4233a; }
.btn--save[aria-pressed="true"] svg { fill: #d1344b; stroke: #d1344b; }
.btn--save:hover svg { transform: none; }

.results__tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.results .form-status { margin-bottom: 1rem; }
.save-dialog { border: 0; border-radius: var(--radius-lg); padding: 1.5rem; width: min(440px, calc(100% - 2rem)); box-shadow: var(--shadow-lg); }
.save-dialog::backdrop { background: rgba(3,26,51,.5); }

.page-hero--compact { padding-bottom: clamp(2rem, 4vw, 3rem); }
.section--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.account-flash { margin-bottom: 1.5rem; }
.auth-wrap { max-width: 480px; margin-inline: auto; }
.auth-tabs { display: flex; gap: .25rem; background: var(--ice); padding: 4px; border-radius: 999px; margin-bottom: 1rem; }
.auth-tabs button { flex: 1; min-height: 44px; border: 0; border-radius: 999px; background: transparent; font: 700 .95rem var(--font-body); color: var(--ink-soft); cursor: pointer; }
.auth-tabs button[aria-selected="true"] { background: #fff; color: var(--navy-800); box-shadow: var(--shadow-sm); }
.auth-panel[hidden] { display: none; }
.auth-alt { text-align: center; margin: 0; }
.link-button { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--brand-deep); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.narrow-form { max-width: 480px; }
.h4 { font-size: 1.15rem; }
.dash[hidden], .auth-wrap[hidden] { display: none; }
.dash-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 2rem; }
.dash-nav a { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 1rem; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 700; font-size: .92rem; text-decoration: none; color: var(--ink); }
.dash-nav a svg { width: 18px; height: 18px; color: var(--brand-deep); }
.dash-nav a:hover { border-color: var(--brand-deep); color: var(--brand-deep); }
.dash-nav .btn { margin-left: auto; }
.dash-section { padding-block: 2rem; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 1rem); }
.dash-empty { color: var(--ink-soft); }
.dash-grid { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .dash-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.dash-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.delete-form { margin-top: 1rem; max-width: 480px; border-color: #f2b8b5; }
.delete-form[hidden] { display: none; }
.btn--danger { color: #b42318; border-color: #b42318; }
.btn--danger:hover { background: #b42318; color: #fff; }
.btn--danger-solid { background: #b42318; color: #fff; }
.btn--danger-solid:hover { background: #8a1c13; color: #fff; }
.search-list, .enquiry-list { display: grid; gap: .75rem; }
.search-item { display: grid; gap: .75rem; align-items: center; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); }
@media (min-width: 760px) { .search-item { grid-template-columns: 1fr auto auto; } }
.search-item__name { font-weight: 700; font-size: 1.05rem; }
.search-item__meta { display: block; font-size: .85rem; color: var(--ink-soft); }
.search-item__actions { display: flex; gap: .5rem; }
.enquiry-item { padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); }
.enquiry-item p { margin: .4rem 0 0; color: var(--ink-soft); }
.lcard--gone { padding: 0; }
.lcard--gone .lcard__body { padding: 1.25rem; }
.outbox { width: 100%; border-collapse: collapse; font-size: .92rem; }
.outbox th, .outbox td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.nav-list a, .header-account, .header-cta { white-space: nowrap; }
/* icon-only account link until there is room for its label */
@media (min-width: 1040px) and (max-width: 1439px) {
  .header-account span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .header-account { width: 44px; justify-content: center; padding: 0; }
}
.preview .lcard__save { right: 52px; }

/* ==========================================================
   Phase 4: home value wizard, agent profiles, staff dashboard
   ========================================================== */
.wizard__steps { display: flex; gap: .4rem; margin: 0 0 1.25rem; padding: 0; counter-reset: wz; list-style: none; }
.wizard__steps li { flex: 1; font-size: .8rem; font-weight: 700; color: var(--ink-soft); padding-top: .55rem; border-top: 4px solid var(--line); counter-increment: wz; }
.wizard__steps li::before { content: counter(wz) ". "; }
.wizard__steps li[aria-current="step"] { color: var(--navy-800); border-color: var(--brand-deep); }
.wizard__steps li.is-done { border-color: var(--brand-sky); }
.wizard__steps[hidden], .wizard__step[hidden], .wizard__nav[hidden] { display: none; }
form:not(.is-wizard) .wizard__steps { display: none; }
.wizard__step { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; display: grid; gap: 1.1rem; }
.wizard__step legend { margin-bottom: 1rem; padding: 0; }
.wizard__step legend:focus { outline: none; }
.wizard__nav { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; }
.wizard__nav .btn[hidden] { display: none; }
.wizard__nav [data-wizard-back] { margin-right: auto; }
.addr-field { position: relative; }
.howto { display: grid; gap: 1rem; margin: 1rem 0 1.5rem; padding-left: 1.4rem; list-style: decimal; }
.howto li { padding-left: .35rem; }
.howto li::marker { font-weight: 800; color: var(--brand-deep); }

.agent-profile { display: grid; gap: 1.5rem; align-items: end; margin-bottom: 1rem; }
@media (min-width: 640px) { .agent-profile { grid-template-columns: 220px 1fr; } }
.agent-profile__photo { border-radius: var(--radius-lg); overflow: hidden; }
.agent-profile__name { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.agent-metas { display: grid; gap: 1.25rem; }
.chip-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; }

.admin { padding: calc(var(--header-h) + 1.5rem) 0 4rem; background: #f6f8fa; min-height: 80vh; }
.admin__inner { width: min(100% - 2rem, 1400px); }
.admin__gate { max-width: 520px; padding: 2rem; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.admin__gate .btn[hidden] { display: none; }
.admin__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.25rem; }
.admin__head h1 { margin: 0; }
.admin__tabs { display: flex; flex-wrap: wrap; gap: .25rem; background: #fff; padding: 4px; border-radius: 12px; box-shadow: var(--shadow-sm); }
.admin__tabs button { min-height: 40px; padding: 0 .9rem; border: 0; border-radius: 9px; background: transparent; font: 700 .88rem var(--font-body); color: var(--ink-soft); cursor: pointer; }
.admin__tabs button[aria-selected="true"] { background: var(--navy-800); color: #fff; }
.admin__tabs button[hidden] { display: none; }
.admin__kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .75rem; margin-bottom: 1.25rem; }
.kpi { text-align: left; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; font: inherit; }
.kpi strong { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; color: var(--navy-800); }
.kpi span { font-size: .85rem; color: var(--ink-soft); font-weight: 600; }
button.kpi:hover { border-color: var(--brand-deep); }
.kpi--sync { cursor: default; }
.admin__panel { background: #fff; border-radius: var(--radius-lg); padding: 1.25rem; box-shadow: var(--shadow-sm); }
.admin-filters { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; margin-bottom: 1rem; }
.admin-filters input { min-height: 40px; padding: .3rem .75rem; border: 1.5px solid var(--line); border-radius: 10px; font: 600 .9rem var(--font-body); min-width: 240px; text-transform: none; letter-spacing: 0; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th { text-align: left; font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); padding: .6rem .6rem; border-bottom: 2px solid var(--line); }
.admin-table td { padding: .65rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table td a { font-weight: 700; }
.admin-sub { display: block; font-size: .8rem; color: var(--ink-soft); font-weight: 500; }
.admin-table td .admin-sub, span.admin-sub { display: inline; }
.admin-table td > .admin-sub:first-child, .admin-table td a + .admin-sub, .admin-table td br + .admin-sub { display: block; }
.is-overdue { color: #b42318; font-weight: 700; }
.pill { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 800; background: var(--ice); color: var(--brand-deep); white-space: nowrap; }
.pill--new { background: #fff3cd; color: #6b4e00; }
.pill--won, .pill--joined { background: #e7f6ec; color: #0b5d2a; }
.pill--lost, .pill--declined { background: #f1f3f5; color: #5c6670; }
.pill--appointment, .pill--interview, .pill--offer { background: #e8e4ff; color: #3f2a99; }
.pill--acknowledged, .pill--in_review { background: #e3f1fb; color: #05528f; }
.pill--escalated { background: #fde8ea; color: #8e1a2d; }
.pill--resolved { background: #e7f6ec; color: #0b5d2a; }
.pill--closed { background: #f1f3f5; color: #5c6670; }
.admin .pager { align-items: center; gap: .75rem; }
.admin-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.admin-row .hint { margin: 0; max-width: 70ch; }
.agent-edit { margin-top: 1.5rem; }
.lead-dialog { border: 0; border-radius: var(--radius-lg); padding: 1.5rem; width: min(980px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); box-shadow: var(--shadow-lg); }
.lead-dialog::backdrop { background: rgba(3,26,51,.5); }
.lead-head { position: relative; padding-right: 3rem; margin-bottom: 1rem; }
.lead-head .preview__close { top: 0; right: 0; }
.lead-contact { margin: 0; }
.lead-grid { display: grid; gap: 1.5rem; }
@media (min-width: 820px) { .lead-grid { grid-template-columns: 1fr 300px; align-items: start; } }
.lead-details { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .5rem 1rem; margin: 0 0 1rem; }
.lead-details dt { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.lead-details dd { margin: 0; font-weight: 600; }
.lead-message { white-space: pre-line; background: var(--sand); padding: .9rem 1rem; border-radius: 12px; }
.timeline { display: grid; gap: .6rem; margin: 0 0 1.25rem; padding: 0; list-style: none; border-left: 2px solid var(--line); }
.timeline li { padding-left: 1rem; position: relative; font-size: .92rem; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: .45em; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.timeline__at { display: block; font-size: .78rem; color: var(--ink-soft); }
.lead-manage { box-shadow: none; }
.report { margin-bottom: 1.5rem; }
.report-grid { display: grid; gap: 1.5rem; }
@media (min-width: 1000px) { .report-grid { grid-template-columns: 1fr 1fr; } }
.bar { display: inline-block; vertical-align: middle; height: 10px; width: calc(var(--w) * 1.2); max-width: 120px; margin-right: .5rem; border-radius: 5px; background: var(--brand); }
.brand-text strong, .brand-text span { white-space: nowrap; }
.brand { flex-shrink: 0; }
@media (min-width: 1040px) and (max-width: 1439px) {
  .nav-list { gap: 0; }
  .nav-list a { padding: .6rem .55rem; font-size: .9rem; }
}
@media (min-width: 1040px) and (max-width: 1179px) {
  .header-cta { padding-inline: 1rem; font-size: .88rem; }
  .nav-list a { padding: .55rem .4rem; font-size: .86rem; }
}
.header-account, .header-cta { flex-shrink: 0; }
.report td:nth-child(2) { white-space: nowrap; }

/* ==========================================================
   SEO content: FAQ, city links, popular searches
   ========================================================== */
.narrow-faq { max-width: 860px; }
.faq { display: grid; gap: .75rem; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.faq__item summary { cursor: pointer; list-style: none; padding: 1.1rem 3rem 1.1rem 1.25rem; position: relative; font-weight: 700; font-size: 1.05rem; color: var(--navy-800); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--brand-deep); transition: transform .2s var(--ease); }
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: var(--radius); }
.faq__a { padding: 0 1.25rem 1.1rem; color: var(--ink-soft); }
.faq__a p { margin: 0; }
.chip--link { text-decoration: none; transition: background .2s, color .2s; }
.chip--link:hover { background: var(--brand-deep); color: #fff; }
.section--navy .chip--link { background: rgba(255,255,255,.12); color: #fff; }
.city-types { margin-bottom: 1.75rem; }
.city-h2 { margin-bottom: 1rem; }
.section--tight .result-grid { margin-bottom: 1.5rem; }
.footer-searches { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.25rem; }
.footer-searches p { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8fb4d4; margin-bottom: .6rem; }
.footer-searches ul { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; }
.footer-searches a { font-size: .88rem; color: #c3d5e6; text-decoration: none; }
.footer-searches a:hover { color: #fff; text-decoration: underline; }

/* ==========================================================
   Real estate news blog
   ========================================================== */
.post-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.35rem; transition: box-shadow .2s var(--ease), border-color .2s; }
.post-card:hover { box-shadow: var(--shadow-md); border-color: var(--brand-sky); }
.post-card__meta { font-size: .8rem; font-weight: 700; letter-spacing: .03em; color: var(--brand-deep); margin-bottom: .4rem; }
.post-card__meta a { text-decoration: none; }
.post-card__title { font-size: 1.2rem; margin-bottom: .5rem; }
.post-card__title a { color: var(--navy-800); text-decoration: none; }
.post-card__title a:hover { color: var(--brand-deep); text-decoration: underline; }
.post-card p { color: var(--ink-soft); font-size: .95rem; margin-bottom: .4rem; }
.post-card__src { font-size: .8rem; }
.blog-cats { margin-bottom: 1.5rem; }
.chip--link.is-current { background: var(--brand-deep); color: #fff; }
.blog-note { margin-top: 2rem; max-width: 80ch; }
.narrow-post { max-width: 780px; }
.post__title { font-size: clamp(2rem, 4vw, 2.9rem); }
.post__meta { color: var(--ink-soft); font-size: .92rem; }
.post__lede { font-size: 1.2rem; color: var(--ink); font-weight: 500; }
.post h2.h3 { margin-top: 2rem; }
.post__means { background: var(--ice); border-left: 4px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.1rem 1.35rem; margin: 2rem 0; }
.post__means p { margin: 0; }
.post__sources { border-top: 1px solid var(--line); padding-top: 1.25rem; margin-top: 2rem; }
.post__sources ul { margin-bottom: 1rem; }
.post__sources .hint { font-size: .85rem; }
.post__cta { margin: 2.5rem 0; }
.post__related { margin-top: 2rem; }
.post-preview p { max-width: 70ch; }
.fact-list { display: grid; gap: .6rem; }
.fact-list li span { display: block; font-size: .85rem; color: var(--ink-soft); font-style: italic; }
.issue-list { display: grid; gap: .4rem; margin-bottom: 1rem; color: #8a1c13; font-size: .88rem; }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.post__cta.cta-band { grid-template-columns: 1fr; padding: clamp(1.75rem, 4vw, 2.5rem); }
.post__cta h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }

/* ==========================================================
   Client reviews
   ========================================================== */
[data-reviews].is-loading { padding: 0; min-height: 1px; overflow: hidden; }
[data-reviews].is-loading .container { visibility: hidden; height: 0; }
.review-summary { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-bottom: 1.5rem; }
.review-sum { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.review-sum p { margin: 0 0 .35rem; color: var(--ink-soft); }
.review-sum__score { display: flex; align-items: baseline; gap: .6rem; }
.review-sum__score strong { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; color: var(--navy-800); }
.review-sum--empty { border-style: dashed; }
.stars { color: #e3a008; letter-spacing: .08em; font-size: 1.05rem; }
.review-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.review-card { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.35rem; display: flex; flex-direction: column; gap: .6rem; }
.review-card blockquote { margin: 0; color: var(--ink); white-space: pre-line; flex: 1; }
.review-card figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .9rem; color: var(--ink-soft); }
.review-card figcaption img { width: 32px; height: 32px; border-radius: 50%; }
.review-card figcaption strong a { color: var(--navy-800); }
.review-src { flex-basis: 100%; font-size: .78rem; font-weight: 700; letter-spacing: .03em; color: var(--brand-deep); }
.review-attribs { margin-top: 1rem; }
.review-attrib { font-size: .82rem; color: var(--ink-soft); margin: .25rem 0; }
.review-score { font-size: 1.05rem; }
.review-score strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; color: var(--navy-800); }
.dash-nav .dash-nav__staff { margin-left: 0; color: #fff; }
/* Saqqa's own contact panel is kept visibly apart from other brokerages' listing details (PropTx IDX 6.3(e)) */
.prop-aside__label { margin: 0 0 .5rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
@media (max-width: 1023px) { .prop-aside { border-top: 1px solid var(--line, #e5e5e5); padding-top: 1.5rem; } }
.idx-notice { font-size: .8rem; color: var(--ink-soft); }
.footer-idx { margin: 1rem 0 0; font-size: .82rem; max-width: 70ch; }
.legal { max-width: 75ch; }
.legal h2 { font-size: 1.35rem; margin: 2rem 0 .6rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin: .35rem 0; }
.legal__updated { color: var(--ink-soft); font-size: .9rem; }
.legal__draft { margin-bottom: 1.5rem; }
.footer-legal { margin: .5rem 0 0; font-size: .85rem; }
.footer-legal a { color: inherit; text-decoration: underline; }
.agent-contact { list-style: none; margin: .9rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem 1.5rem; font-size: .95rem; }
.agent-contact span { color: var(--ink-soft); font-weight: 600; margin-right: .25rem; }
.agent-contact a { overflow-wrap: anywhere; }
.agent-contact:empty { display: none; }
/* Homepage hero brand animation */
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--navy-900); }

/* ---------- Technology & innovation (About, Join, homepage band) ---------- */
.tech .section-head { max-width: 760px; }
.tech-grid { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.tech-card { position: relative; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2rem); transition: transform .35s var(--ease), border-color .35s, background .35s; }
.tech-card:hover { transform: translateY(-4px); border-color: rgba(143,210,245,.45); background: rgba(255,255,255,.08); }
.tech-card .icon, .founder-card .icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: rgba(143,210,245,.14); color: #8fd2f5; margin-bottom: 1.25rem; }
.tech-card .icon svg, .founder-card .icon svg { width: 26px; height: 26px; }
.tech-card h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.tech-card p { color: #c3d5e6; margin-bottom: .75rem; }
.tech-card strong { color: #fff; }
.tech-card a { color: #8fd2f5; }
.tech-list { list-style: none; margin: 0; padding: 0; }
.tech-list li { position: relative; padding-left: 1.4rem; margin-bottom: .55rem; color: #dce8f3; font-size: .95rem; line-height: 1.5; }
.tech-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-sky); box-shadow: 0 0 0 4px rgba(30,163,227,.18); }
.tech-card__next { margin: 1rem 0 0; padding-top: 1rem; border-top: 1px dashed rgba(255,255,255,.18); font-size: .9rem; }
.tech-card__next span { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8fd2f5; margin-bottom: .25rem; }
.tech-note { display: flex; gap: .75rem; align-items: flex-start; margin: clamp(1.5rem, 3vw, 2.25rem) 0 0; padding: 1rem 1.25rem; border-radius: var(--radius); background: rgba(255,255,255,.06); color: #c3d5e6; font-size: .95rem; }
.tech-note svg { width: 22px; height: 22px; flex: none; color: #8fd2f5; margin-top: .1rem; }
.tech-quote { margin: 1.75rem 0 0; padding: .25rem 0 .25rem 1.25rem; border-left: 3px solid var(--brand-sky); font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; font-size: clamp(1.15rem, 1.9vw, 1.35rem); line-height: 1.4; color: var(--navy-800); }
.founder-card { background: var(--navy-800); color: #c3d5e6; border-radius: var(--radius-lg); padding: clamp(1.75rem, 3vw, 2.5rem); box-shadow: var(--shadow-lg); }
.founder-card h3 { color: #fff; font-size: 1.6rem; margin-bottom: .75rem; }
.founder-card .eyebrow { color: #8fd2f5; }
.founder-card .link-arrow { color: #8fd2f5; }
.edge-list { list-style: none; margin: clamp(1.5rem, 3vw, 2.5rem) 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 720px) { .edge-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .edge-list { grid-template-columns: repeat(3, 1fr); } }
.edge-list li { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.edge-list__icon { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(143,210,245,.14); color: #8fd2f5; }
.edge-list__icon svg { width: 22px; height: 22px; }
.edge-list h3 { font-size: 1.1rem; margin: 0 0 .25rem; }
.edge-list p { margin: 0; color: #c3d5e6; font-size: .95rem; line-height: 1.5; }
.tech-band { background: var(--navy-800); color: #c3d5e6; padding-block: clamp(2.5rem, 6vw, 4rem); }
.tech-band h2 { color: #fff; margin-bottom: .75rem; }
.tech-band p { max-width: 56ch; }
.tech-band .link-arrow { color: #8fd2f5; }
.tech-band__inner { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .tech-band__inner { grid-template-columns: 1.4fr 1fr; } }
.tech-band__points { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.tech-band__points li { display: flex; align-items: center; gap: .85rem; padding: .9rem 1.1rem; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #fff; font-weight: 600; }
.tech-band__points svg { width: 22px; height: 22px; color: #8fd2f5; flex: none; }
@media (prefers-reduced-motion: reduce) { .tech-card, .tech-card:hover { transition: none; transform: none; } }
.city-filter { border: 0; cursor: pointer; font: inherit; margin: 0 0 .5rem; }

/* VOW (signed-in Virtual Office Website) */
.lcard__tag--off { background: #7a1f2b; }
.lcard__was { display: block; font-family: var(--font-body); font-size: .8rem; color: var(--ink-soft); }
.vow-gate { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.vow-gate[hidden], [data-vow-app][hidden] { display: none; }
.vow-benefits { margin: 1rem 0; padding-left: 1.2rem; }
.vow-benefits li { margin-bottom: .35rem; }
.vow-request { margin-top: 1.25rem; max-width: 640px; }
.vow-terms { margin: .75rem 0 1rem; border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem 1rem; background: #fff; }
.vow-terms summary { cursor: pointer; font-weight: 700; color: var(--brand-deep); }
.vow-terms h4 { margin: 1rem 0 .35rem; font-size: 1rem; }
.vow-terms ul { padding-left: 1.2rem; font-size: .92rem; }
.vow-privacy { margin-top: 1rem; padding: .75rem 1rem; border-left: 4px solid var(--brand-deep); background: var(--tint, #f5f7fa); }
.vow-privacy ul { padding-left: 1.2rem; }
.vow-request input[type=checkbox]:disabled + label { opacity: .6; }
.admin-history { margin: .5rem 0 0; padding-left: 1rem; font-size: .85rem; }

/* Homepage: Recently Sold Properties. Locked cards hold no listing information: a blurred stock photo, blank bars and
   a sign-in button. Approved clients get real cards (the same .lcard as Latest listings) loaded from the signed-in API. */
.lcard--locked .lcard__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ice); }
.lcard--locked .lcard__media img { width: 100%; height: 100%; object-fit: cover; filter: blur(14px) saturate(.85); transform: scale(1.15); }
.lcard--locked .lcard__media::after { content: ""; position: absolute; inset: 0; background: rgba(3, 26, 51, .18); }
.lcard__unlock { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; white-space: nowrap; box-shadow: var(--shadow-md); display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; }
.lcard__unlock svg { width: 18px; height: 18px; flex: 0 0 18px; }
.lcard--locked .lcard__tag { z-index: 2; }
.lcard--locked .lcard__body { display: grid; gap: .55rem; padding: 1rem 1.1rem 1.25rem; }
.skel { display: block; height: .8rem; width: 78%; border-radius: 6px; background: linear-gradient(90deg, #e3eaf1, #eef3f7, #e3eaf1); }
.skel--price { height: 1.4rem; width: 46%; }
.skel--short { width: 52%; }
.skel--meta { width: 64%; height: .7rem; }
@media (prefers-reduced-motion: no-preference) { .lcard--locked:hover .lcard__unlock { transform: translate(-50%, -50%) scale(1.03); } }

/* Access card for Advanced Listing Information (vow.js): one compact card, one main action */
.vow-gate__wrap { display: flex; justify-content: center; }
.vow-card { width: 100%; max-width: 30rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: clamp(1.25rem, 4vw, 2rem); }
.vow-card h2, .vow-card h1 { margin: .25rem 0 .5rem; }
.vow-card__lede { color: var(--ink-soft); margin: 0 0 1rem; }
.vow-card__btn { width: 100%; justify-content: center; min-height: 48px; }
.vow-card__actions { display: grid; gap: .6rem; margin: 0; }
.vow-consent__terms { max-height: 8.5rem; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 12px; background: var(--ice); padding: .6rem .85rem; font-size: .8rem; line-height: 1.5; color: var(--ink-soft); }
.vow-consent__terms:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.vow-consent__terms h4 { font-size: .82rem; margin: .5rem 0 .2rem; color: var(--ink); }
.vow-consent__terms h4:first-child { margin-top: 0; }
.vow-consent__terms ul { padding-left: 1.1rem; margin: 0; }
.vow-consent__terms .vow-privacy { margin-top: .6rem; padding: .4rem .6rem; }
.vow-consent__agree { margin: .9rem 0 .2rem; font-weight: 600; color: var(--ink); }
.vow-consent__links { margin: 0 0 .5rem; font-size: .92rem; }
.vow-consent__links span { color: var(--line); margin: 0 .35rem; }
.vow-consent__fine { font-size: .8rem; color: var(--ink-soft); margin: 0 0 1rem; }
.vow-card .field { margin-bottom: .9rem; }
.vow-card .form-status { margin-top: .6rem; }
/* phones: keep the card's button clear of the fixed Call / Free consultation bar */
@media (max-width: 1039px) { .vow-gate { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); } }
.dash-section .vow-card { box-shadow: none; max-width: none; }
/* the search page has no hero under the fixed header, so the access card starts below it */
.vow-gate:not(.section) { padding-top: calc(var(--header-h) + clamp(1.25rem, 4vw, 2.5rem)); }

/* Sold, leased and off-market pages of Advanced Listing Information (server/vow/sold.ts) */
.sold-summary { margin: 1.25rem 0 .5rem; }
.sold-result { border-radius: var(--radius-lg); padding: 1.25rem 1.4rem; background: var(--ice); border: 1px solid var(--line); }
.sold-result--up { background: #eaf6ef; border-color: #cfe9da; }
.sold-result--down { background: #fbf0ee; border-color: #f0d9d4; }
.sold-result__label { margin: 0; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
.sold-result__price { margin: .15rem 0 .35rem; font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; font-size: clamp(1.9rem, 4.5vw, 2.6rem); color: var(--navy-900); line-height: 1.1; font-variant-numeric: tabular-nums; }
.sold-result__verdict { margin: 0; font-weight: 600; color: var(--ink); }
.sold-result--up .sold-result__verdict span { color: #1f7a4a; }
.sold-result--down .sold-result__verdict span { color: #a33a2b; }
.sold-result__ratio { margin: .3rem 0 0; color: var(--ink-soft); }
.sold-result__ratio strong { color: var(--ink); }
.sold-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: .6rem; margin: .9rem 0 0; }
.sold-stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .7rem .85rem; }
.sold-stat dt { font-size: .75rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; }
.sold-stat dd { margin: .2rem 0 0; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.sold-stat dd span { display: block; font-weight: 500; font-size: .8rem; color: var(--ink-soft); margin-top: .15rem; }
.sold-summary__note { margin: .5rem 0 0; }
.sold-summary__h { margin: 1.4rem 0 0; }
.sold-stats--facts .sold-stat { background: var(--paper); }
@media (max-width: 560px) { .sold-stats { grid-template-columns: 1fr 1fr; } }
.feat-groups { display: grid; gap: 1rem 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.feat-group h3 { margin: 0 0 .4rem; font-size: 1rem; }
.insights .insight-links { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .5rem; }
.insight-link { display: block; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.insight-link:hover, .insight-link:focus-visible { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.insight-link span { display: block; font-weight: 700; color: var(--brand-deep); }
.insight-link small { color: var(--ink-soft); }
.insight-ask { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: .2rem 1rem; }
.insight-ask summary { cursor: pointer; padding: .7rem 0; font-weight: 700; color: var(--brand-deep); min-height: 44px; display: flex; align-items: center; }
.insight-ask[open] { padding-bottom: 1rem; }

/* Phase B: building details, rooms, listing history, other listings of the property (server/vow/extras.ts) */
.detail-groups { display: grid; gap: 1.25rem 2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.detail-group h3 { margin: 0 0 .4rem; font-size: 1rem; }
.detail-group dl { margin: 0; }
.detail-group dl > div { display: grid; grid-template-columns: 45% 1fr; gap: .75rem; padding: .4rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.detail-group dt { color: var(--ink-soft); }
.detail-group dd { margin: 0; color: var(--ink); font-weight: 600; }
.prop-more > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: .5rem; min-height: 44px; }
.prop-more > summary::-webkit-details-marker { display: none; }
.prop-more > summary::after { content: "+"; margin-left: auto; font-size: 1.4rem; color: var(--brand-deep); }
.prop-more[open] > summary::after { content: "−"; }
.prop-more > summary h2 { margin: 0; }
.rooms { margin-top: .5rem; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.rooms__row { display: grid; grid-template-columns: 1.3fr .8fr 1fr 1.6fr; gap: .75rem; padding: .6rem .9rem; border-top: 1px solid var(--line); font-size: .92rem; }
.rooms__head { border-top: 0; background: var(--ice); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
@media (max-width: 640px) {
  .rooms__head { display: none; }
  .rooms__row { grid-template-columns: 1fr 1fr; }
  .rooms__row span:nth-child(4) { grid-column: 1 / -1; color: var(--ink-soft); }
}
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.1rem; border-left: 2px solid var(--line); }
.timeline__item { position: relative; padding: 0 0 1rem .6rem; }
.timeline__item::before { content: ""; position: absolute; left: -1.55rem; top: .35rem; width: .7rem; height: .7rem; border-radius: 50%; background: var(--brand); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.timeline__item--record::before { background: var(--navy-800); }
.timeline time { display: block; font-size: .8rem; color: var(--ink-soft); }
.timeline p { margin: .1rem 0 0; }
.timeline p span { color: var(--ink-soft); }
.prev-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.prev-list li { border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem; background: #fff; }
.prev-list li span { display: block; font-size: .85rem; color: var(--ink-soft); }

/* Phase C: market statistics (server/vow/market-view.ts, public/js/market.js) */
.mkt-filters { display: flex; flex-wrap: wrap; gap: .6rem 1rem; margin: 0 0 1rem; }
.mkt-scope { margin: 0 0 .25rem; }
.mkt-body.is-loading { opacity: .55; transition: opacity .2s; }
.mkt-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .6rem; margin: .75rem 0; }
.mkt-tile { border: 1px solid var(--line); border-radius: 12px; padding: .7rem .85rem; background: #fff; }
.mkt-tile dt { font-size: .75rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; }
.mkt-tile dd { margin: .2rem 0 0; font-weight: 700; font-size: 1.1rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.mkt-tile dd > span:not(.mkt-cond) { display: block; font-weight: 500; font-size: .78rem; color: var(--ink-soft); margin-top: .15rem; }
.mkt-tile--cond { grid-column: span 2; }
@media (max-width: 560px) { .mkt-tiles { grid-template-columns: 1fr 1fr; } }
.mkt-cond { display: inline-flex; align-items: center; gap: .35rem; }
.mkt-cond--sellers span[aria-hidden] { color: #a33a2b; }
.mkt-cond--buyers span[aria-hidden] { color: #1f7a4a; }
.mkt-cond--balanced span[aria-hidden] { color: var(--brand-deep); }
.mkt-vs { background: var(--ice); border-radius: 12px; padding: .8rem 1rem; margin: .5rem 0 1rem; }
.mkt-vs h3 { margin: 0 0 .3rem; font-size: 1rem; }
.mkt-vs ul { margin: 0; padding-left: 1.1rem; }
.mkt-compare, .mkt-table, .mkt-method { margin: .5rem 0; }
.mkt-compare summary, .mkt-table summary, .mkt-method summary { cursor: pointer; color: var(--brand-deep); font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.mkt-method ul { padding-left: 1.1rem; font-size: .9rem; color: var(--ink-soft); }
.mkt-chart { margin: 1rem 0 0; }
.mkt-chart figcaption { margin: 0 0 .4rem; font-size: 1rem; }
.mkt-chart__plot { position: relative; }
.mkt-chart svg { width: 100%; height: auto; display: block; touch-action: pan-y; }
.mkt-grid { stroke: var(--line); stroke-width: 1; }
.mkt-axis { fill: var(--ink-soft); font-size: 11px; font-family: var(--font-body); }
.mkt-line { fill: none; stroke: #05528f; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.mkt-dot { fill: #05528f; stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.mkt-cross { stroke: var(--ink-soft); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.mkt-tip { position: absolute; top: 0; transform: translateX(-50%); background: var(--navy-900); color: #fff; font-size: .8rem; padding: .3rem .55rem; border-radius: 8px; white-space: nowrap; pointer-events: none; }
.mkt-table table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.mkt-table th, .mkt-table td { text-align: left; padding: .35rem .5rem; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.mkt-cross[hidden] { display: none; }

/* Phase D: comparable properties (server/vow/comparables.ts) */
.comp-group { border-top: 1px solid var(--line); }
.comp-group > summary { cursor: pointer; list-style: none; display: flex; align-items: center; min-height: 48px; }
.comp-group > summary::-webkit-details-marker { display: none; }
.comp-group > summary::after { content: "+"; margin-left: auto; font-size: 1.3rem; color: var(--brand-deep); }
.comp-group[open] > summary::after { content: "−"; }
.comp-group > summary h3 { margin: 0; font-size: 1.02rem; }
.comp-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.comp { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.comp > a { text-decoration: none; color: inherit; display: block; }
.comp > a:hover .comp__addr, .comp > a:focus-visible .comp__addr { color: var(--brand-deep); text-decoration: underline; }
.comp__media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--ice); }
.comp__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.comp__nophoto { display: grid; place-items: center; height: 100%; color: var(--ink-soft); font-size: .85rem; }
.comp__tag { position: absolute; left: .6rem; top: .6rem; background: var(--navy-900); color: #fff; font-size: .72rem; font-weight: 700; padding: .2rem .5rem; border-radius: 999px; }
.comp__tag:empty { display: none; }
.comp__body { display: grid; gap: .15rem; padding: .7rem .85rem .4rem; }
.comp__price { font-weight: 700; font-size: 1.05rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.comp__price small { display: block; font-weight: 500; font-size: .78rem; color: var(--ink-soft); }
.comp__addr { font-weight: 600; }
.comp__meta, .comp__office { font-size: .82rem; color: var(--ink-soft); }
.comp__why { list-style: none; margin: 0; padding: .3rem .85rem .8rem; display: flex; flex-wrap: wrap; gap: .3rem; }
.comp__why li { font-size: .74rem; background: var(--ice); color: var(--ink); border-radius: 999px; padding: .15rem .55rem; }
[data-comps-body].is-loading { opacity: .55; transition: opacity .2s; }

/* Phase E: mortgage & investment calculator (server/vow/invest-view.ts, public/js/finance.js + invest.js) */
.inv-form { display: grid; gap: 1rem; }
.inv-form fieldset { border: 1px solid var(--line); border-radius: 14px; padding: .8rem 1rem 1rem; margin: 0; display: grid; gap: .7rem 1rem; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); background: #fff; }
.inv-form legend { font-weight: 700; padding: 0 .35rem; color: var(--ink); }
.inv-field { display: grid; gap: .25rem; font-size: .9rem; }
.inv-field__label { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; color: var(--ink); font-weight: 600; }
.inv-field__input { display: flex; align-items: center; gap: .4rem; }
.inv-field__input input, .inv-field__input select { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: .45rem .6rem; font: inherit; background: #fff; }
.inv-field__input span { color: var(--ink-soft); font-size: .82rem; white-space: nowrap; }
.inv-field small { color: var(--ink-soft); font-size: .78rem; }
.inv-check { display: flex; align-items: center; gap: .5rem; font-size: .9rem; grid-column: 1 / -1; min-height: 32px; }
.src { font-size: .68rem; font-weight: 700; letter-spacing: .02em; border-radius: 999px; padding: .08rem .45rem; white-space: nowrap; }
.src--listing { background: #e6f1fa; color: #05528f; }
.src--estimate { background: #fff4df; color: #7a4d00; }
.src--you { background: #eef0f3; color: var(--ink-soft); }
.inv-out { margin-top: 1rem; }
.inv-grid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.inv-card { border: 1px solid var(--line); border-radius: 14px; padding: .8rem 1rem; margin: 0; background: #fff; }
.inv-card h3 { margin: 0 0 .4rem; font-size: 1rem; }
.inv-card--empty p { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.inv-row { display: flex; justify-content: space-between; gap: .75rem; padding: .3rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.inv-row:last-child { border-bottom: 0; }
.inv-row dt { color: var(--ink-soft); }
.inv-row dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.inv-row--key dd { font-size: 1.05rem; font-weight: 800; color: var(--ink); }
.inv-row.is-neg dd { color: #a33a2b; }
.inv-row.is-pos dd { color: #1f7a4a; }
.inv-adjust { margin: 1.25rem 0 .5rem; }

/* Phase F: Saqqa Market Insights (server/vow/insights.ts) */
.insights-sum { background: linear-gradient(180deg, var(--ice), #fff 60%); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.1rem 1.25rem; margin-top: 1.25rem; }
.insights-sum > h2 { margin-top: 0; }
.ins-block { margin: .75rem 0 0; }
.ins-block h3 { margin: 0 0 .35rem; font-size: 1rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; }
.ins-block ul { margin: 0; padding-left: 1.15rem; display: grid; gap: .35rem; }
.ins-block--interp { border-left: 3px solid var(--brand); padding-left: .85rem; }
.ins-block--missing summary { cursor: pointer; color: var(--brand-deep); font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.ins-block--missing ul { color: var(--ink-soft); font-size: .92rem; }
.detail-group dt small { display: block; font-size: .78rem; color: var(--ink-soft); margin-top: .1rem; }

/* Sold / off-market pages on phones and tablets: the Property Insights sidebar comes right after the sale summary,
   not at the very bottom. The main column's children join the page flow (display: contents) so the order can be set. */
@media (max-width: 1023px) {
  .prop-layout--txn { display: flex; flex-direction: column; gap: 0; }
  .prop-layout--txn .prop-main { display: contents; }
  .prop-layout--txn .prop-main > * { order: 3; }
  .prop-layout--txn .prop-main > .gallery, .prop-layout--txn .prop-main > .prop-title, .prop-layout--txn .prop-main > .prop-actions, .prop-layout--txn .prop-main > .sold-summary { order: 1; }
  .prop-layout--txn .prop-aside { order: 2; border-top: 0; padding-top: 0; margin: 1.25rem 0 .5rem; }
}

/* Show / hide password button inside password fields (main.js) */
.pw-wrap { position: relative; display: block; }
.pw-wrap > input { width: 100%; padding-right: 3rem; }
.pw-toggle { position: absolute; top: 0; right: 0; height: 100%; width: 2.9rem; min-width: 44px; display: grid; place-items: center; background: none; border: 0; padding: 0; margin: 0; color: var(--ink-soft); cursor: pointer; border-radius: 0 10px 10px 0; touch-action: manipulation; }
.pw-toggle svg { width: 20px; height: 20px; }
.pw-toggle:hover, .pw-toggle[aria-pressed="true"] { color: var(--brand-deep); }
.pw-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: -3px; }
/* the browser's own reveal button (Edge) would duplicate ours */
.pw-wrap > input::-ms-reveal, .pw-wrap > input::-ms-clear { display: none; }

/* "Showing homes in <city> · Change city" (js/city.js) */
.city-bar { margin: .35rem 0 0; font-size: .95rem; }
.city-bar:empty { display: none; }
.city-bar__now { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; color: var(--ink-soft); }
.city-bar__now svg { width: 18px; height: 18px; color: var(--brand-deep); flex: 0 0 18px; }
.city-bar__now strong { color: var(--ink); }
.city-bar__now small { font-size: .8rem; }
.city-bar .link-button { min-height: 32px; }
.city-bar__status { margin: .35rem 0 0; font-size: .88rem; color: var(--ink-soft); max-width: 40rem; }
.match-locate { margin: .6rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; font-size: .9rem; color: var(--ink-soft); }
.match-locate .btn { min-height: 44px; }
.city-bar__form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .5rem; }
.city-bar__form input { flex: 1 1 14rem; min-height: 44px; max-width: 22rem; border: 1px solid var(--line); border-radius: 10px; padding: .45rem .7rem; font: inherit; }
.city-bar__form .btn { min-height: 44px; }
.city-bar__form .form-status { flex-basis: 100%; margin: 0; font-size: .88rem; }
.city-bar--search { margin: .1rem 0 .4rem; }

/* "Continue with Google" on the sign-in and sign-up forms (shown only when Google sign-in is switched on) */
.social { margin-bottom: 1rem; }
.social__btn { display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; background: #fff; }
.social__btn svg { width: 20px; height: 20px; flex: 0 0 20px; }
.social__note { font-size: .78rem; color: var(--ink-soft); margin: .5rem 0 0; }
.social__or { display: flex; align-items: center; gap: .75rem; color: var(--ink-soft); font-size: .85rem; margin: .9rem 0 0; }
.social__or::before, .social__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.social__btn + .social__btn { margin-top: .5rem; }
.social__btn[hidden] { display: none; }
.social__btn--apple { background: #000; color: #fff; border: 1px solid #000; }
.social__btn--apple:hover, .social__btn--apple:focus-visible { background: #1a1a1a; color: #fff; }

/* Verify the phone number by text (account settings) */
.phone-verify { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin: -.4rem 0 1rem; font-size: .9rem; }
.phone-verify__state { margin: 0; color: var(--ink-soft); }
.phone-verify__code { display: inline-flex; gap: .4rem; align-items: center; }
.phone-verify__code input { width: 7rem; min-height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: .35rem .6rem; font: inherit; }
.phone-verify .form-status { flex-basis: 100%; margin: 0; }

/* Homepage listing widgets: five cards. A swipeable row on phones and tablets, five across on wide screens. */
.home-widget .section-head { margin-bottom: 1.25rem; }
.grid--5 { grid-auto-flow: column; grid-auto-columns: minmax(230px, 78%); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: .25rem .1rem .75rem; scrollbar-width: thin; }
.grid--5 > * { scroll-snap-align: start; min-width: 0; }
@media (min-width: 640px) { .grid--5 { grid-auto-columns: minmax(230px, 44%); } }
@media (min-width: 900px) { .grid--5 { grid-auto-columns: minmax(230px, 30%); } }
@media (min-width: 1200px) {
  .grid--5 { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; padding: 0; gap: 1rem; }
  .grid--5 .lcard__price { font-size: 1.2rem; }
  .grid--5 .lcard__body { padding: .75rem .85rem .9rem; }
  .grid--5 .lcard__meta { font-size: .82rem; gap: .2rem .6rem; }
  .grid--5 .lcard__unlock { font-size: .85rem; padding-inline: .8rem; }
}
.grid--5 .lcard__title, .grid--5 .lcard__city, .grid--5 .lcard__office { overflow-wrap: anywhere; }
/* sold price compared with the asking price: the words say below / above, the colour only supports them */
.lcard__vs { display: inline-block; margin: .35rem 0 0; padding: .15rem .55rem; border-radius: 999px; font-family: var(--font-body); font-size: .78rem; font-weight: 800; background: var(--ice); color: var(--navy-800); }
.lcard__vs--below { background: #e8f1fb; color: #0b3a6b; }
.lcard__vs--above { background: #e6f4ec; color: #14532d; }
/* Homepage widgets: the feed disclosure under each row of cards stays complete but compact */
.home-widget .notice { margin-top: .85rem; padding: .45rem .7rem; gap: .5rem; font-size: .75rem; line-height: 1.45; border-radius: 10px; border: 1px solid var(--line); background: transparent; }
.home-widget .notice svg { width: 14px; height: 14px; margin-top: 2px; }
.home-widget .notice a { font-weight: 600; }
@media (max-width: 639px) { .home-widget .notice { padding: .4rem .6rem; } .home-widget .notice svg { display: none; } }
/* a widget opened with "View all": the cards wrap onto rows instead of one swipeable row */
.grid--5.grid--5-open { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); overflow: visible; }
.home-widget .btn[hidden] { display: none; }

/* ---------- Saqqa Match ---------- */
.match-band { background: linear-gradient(110deg, var(--navy-800), #0a3b6e); color: #dce8f3; padding: clamp(1.5rem, 4vw, 2.25rem) 0; }
.match-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.match-home__intro h2 { color: #fff; font-size: clamp(1.35rem, 2.6vw, 1.9rem); margin: 0 0 .35rem; max-width: 26ch; }
.match-home__intro p { margin: 0; max-width: 60ch; }
.match-home__intro .eyebrow { color: #8fd2f5; margin-bottom: .5rem; }
/* Saqqa Match on the homepage: the words on one side, the live swipe deck on the other (js/home-match.js) */
.match-home { padding: clamp(2rem, 5vw, 3.25rem) 0; scroll-margin-top: var(--header-h, 72px); }
.match-home__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); align-items: center; gap: clamp(1.5rem, 5vw, 4rem); }
.match-home__intro h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); max-width: 18ch; margin-bottom: .75rem; }
.match-home__intro p + p { margin-top: .9rem; }
.match-home__note { color: #fff; font-weight: 700; }
.match-home__note[hidden] { display: none; }
.match-home__more a { color: #fff; font-weight: 800; }
.match-home__more span { display: block; font-size: .88rem; color: #b9cfe2; margin-top: .2rem; }
.match-home__deck { color: var(--ink); min-width: 0; }
.match-home__stage .deck { width: 100%; height: clamp(430px, 62vh, 520px); min-height: 0; }
/* on a phone the card must not trap a finger that is scrolling the page: sideways swipes only */
.match-home .mcard.is-top .mcard__media { touch-action: pan-y; }
.match-home .deck-status { background: #fff; border: 0; border-radius: 20px; padding: 2rem 1.25rem; }
.match-home .deck-actions { margin-top: .9rem; }
.match-home .deck-hint { color: #b9cfe2; font-size: .85rem; margin-top: .7rem; }
/* the lock after the free swipes: a blurred placeholder card (no listing in it) under a sign-in panel, as on sold listings */
.match-home__stage[hidden], .match-lock[hidden], .match-home__left[hidden], .match-home .deck-hint[hidden] { display: none; }
.match-lock { position: relative; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); }
.match-lock__card { border: 0; box-shadow: none; border-radius: 0; margin: 0; }
.match-lock__card .lcard__media { aspect-ratio: 4 / 3; }
.match-lock__panel { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: .6rem; padding: 1.25rem; text-align: center; background: rgba(255,255,255,.86); }
.match-lock__panel h3 { margin: 0; font-size: 1.3rem; color: var(--navy-800); outline: none; }
.match-lock__panel p { margin: 0; max-width: 30ch; color: var(--ink); font-size: .98rem; }
.match-lock__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: .5rem !important; max-width: none !important; }
.match-lock__actions .btn { min-height: 48px; display: inline-flex; align-items: center; gap: .4rem; }
.match-lock__actions svg { width: 18px; height: 18px; }
.match-home__left { color: #fff !important; font-weight: 700; margin-top: .3rem !important; }
@media (max-width: 820px) {
  .match-home__inner { grid-template-columns: 1fr; }
  .match-home__intro h2 { max-width: none; }
  .match-home__deck { width: min(100%, 400px); margin-inline: auto; }
  .match-home__stage .deck { height: clamp(420px, 68vh, 500px); }
}

.match-gate { max-width: 560px; margin: 0 auto; padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: 20px; text-align: center; background: #fff; }
.match-gate__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin: 1.25rem 0 0; }
.match-tabs { display: flex; gap: .25rem; width: fit-content; max-width: 100%; margin: 0 auto 1.5rem; padding: .25rem; border-radius: 999px; background: var(--ice); }
.match-tabs button { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 1rem; border: 0; border-radius: 999px; background: transparent; font: 700 .92rem var(--font-body); color: var(--ink-soft); cursor: pointer; }
.match-tabs button svg { width: 18px; height: 18px; }
.match-tabs button[aria-selected="true"] { background: #fff; color: var(--navy-800); box-shadow: var(--shadow-sm); }

.deck { position: relative; width: min(100%, 430px); height: min(72vh, 640px); min-height: 480px; margin: 0 auto; }
.deck:empty { display: none; }
.mcard { position: absolute; inset: 0; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md); transform: scale(.96) translateY(10px); transition: transform .26s var(--ease), opacity .26s; --like: 0; --pass: 0; }
.mcard.is-top { transform: none; cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; box-shadow: var(--shadow-lg); }
.mcard.is-top:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.mcard.is-dragging { transition: none; cursor: grabbing; }
.mcard.is-leaving { opacity: 0; pointer-events: none; }
.mcard__media { position: relative; flex: 1 1 52%; min-height: 0; background: var(--ice); }
.mcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.mcard__nophoto { display: grid; place-items: center; height: 100%; color: var(--ink-soft); font-size: .9rem; }
.mcard__dots { position: absolute; top: 8px; left: 10px; right: 10px; display: flex; gap: 4px; }
.mcard__dots i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.5); }
.mcard__dots i.is-on { background: #fff; }
.mcard__nav { position: absolute; top: 0; bottom: 0; width: 34%; border: 0; background: transparent; cursor: pointer; }
.mcard__nav--prev { left: 0; } .mcard__nav--next { right: 0; }
.mcard__nav:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.mcard__score { position: absolute; left: 12px; bottom: 12px; padding: .3rem .7rem; border-radius: 999px; background: rgba(4,38,74,.9); color: #fff; font-size: .82rem; font-weight: 700; }
.mcard__score strong { font-size: 1rem; font-weight: 800; }
.mcard__demo { position: absolute; right: 12px; bottom: 12px; padding: .2rem .6rem; border-radius: 999px; background: #fff8e6; color: #5c4400; border: 1px solid #f0c75e; font-size: .72rem; font-weight: 800; }
.mcard__stamp { position: absolute; top: 28px; padding: .25rem .8rem; border: 3px solid currentColor; border-radius: 10px; font: 800 1.25rem var(--font-body); letter-spacing: .06em; text-transform: uppercase; background: rgba(255,255,255,.9); opacity: 0; pointer-events: none; }
.mcard__stamp--like { left: 18px; color: #14803c; transform: rotate(-12deg); opacity: var(--like); }
.mcard__stamp--pass { right: 18px; color: #b4233a; transform: rotate(12deg); opacity: var(--pass); }
.mcard__stamp--super { left: 50%; transform: translateX(-50%); color: #0b63a8; opacity: var(--super, 0); }
.mcard.is-like .mcard__stamp--like, .mcard.is-pass .mcard__stamp--pass, .mcard.is-super .mcard__stamp--super { opacity: 1; }
.mcard__body { flex: 0 1 auto; max-height: 52%; overflow-y: auto; padding: .9rem 1.1rem 1rem; }
.mcard__price { margin: 0; font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; font-size: 1.5rem; color: var(--navy-800); font-variant-numeric: tabular-nums; }
.mcard__title { margin: .1rem 0 0; font-size: 1.05rem; letter-spacing: -.01em; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.mcard__city { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.mcard__meta { display: flex; flex-wrap: wrap; gap: .2rem .9rem; margin: .45rem 0 0; font-size: .9rem; font-weight: 600; }
.mcard__why { margin: .6rem 0 0; font-size: .85rem; }
.mcard__why summary { cursor: pointer; font-weight: 700; color: var(--brand-deep); min-height: 32px; display: inline-flex; align-items: center; }
.mcard__why-list { list-style: none; margin: .35rem 0 0; padding: 0; }
.mcard__why-list li { display: grid; grid-template-columns: 1fr auto; gap: 0 .75rem; padding: .3rem 0; border-top: 1px solid var(--line); }
.mcard__why-list li span:first-child { font-weight: 700; }
.mcard__why-list li span:nth-child(2) { grid-column: 1; color: var(--ink-soft); }
.mcard__why-list li strong { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-variant-numeric: tabular-nums; }
.mcard__why-note, .mcard__why-none { margin: .4rem 0 0; color: var(--ink-soft); font-size: .78rem; }
.mcard__foot { display: flex; flex-wrap: wrap; gap: .15rem .9rem; margin: .6rem 0 0; font-size: .78rem; color: var(--ink-soft); }
.mcard__foot a { font-weight: 800; font-size: .88rem; min-height: 28px; display: inline-flex; align-items: center; }

.deck-actions { display: flex; justify-content: center; align-items: center; gap: clamp(.75rem, 4vw, 1.25rem); margin: 1.1rem 0 0; }
.deck-actions[hidden], .deck-status[hidden] { display: none; }
.deck-btn { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--line); background: #fff; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .15s var(--ease), box-shadow .15s; }
.deck-btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.deck-btn:hover { transform: translateY(-2px) scale(1.05); box-shadow: var(--shadow-md); }
.deck-btn:active { transform: scale(.94); }
.deck-btn:disabled { opacity: .4; cursor: default; transform: none; box-shadow: none; }
.deck-btn--undo { width: 48px; height: 48px; color: #8a5a00; } .deck-btn--undo svg { width: 22px; height: 22px; }
.deck-btn--pass { color: #b4233a; border-color: #f0c2ca; }
.deck-btn--super { width: 52px; height: 52px; color: #0b63a8; border-color: #b9d9f2; }
.deck-btn--like { color: #14803c; border-color: #b9e3c8; }
.deck-hint { text-align: center; margin: .9rem auto 0; max-width: 46ch; }
.deck-status { max-width: 520px; margin: 0 auto; padding: 2.5rem 1.25rem; text-align: center; border: 1px dashed var(--line); border-radius: 20px; }
.deck-status__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin: 1.25rem 0 0; }

.match-summary { text-align: center; color: var(--ink-soft); margin: 0 0 1.25rem; }
.match-item__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem .75rem; margin: .5rem .25rem 0; font-size: .88rem; font-weight: 700; }
.match-chip { padding: .2rem .65rem; border-radius: 999px; background: var(--ice); color: var(--navy-800); font-weight: 800; }
.match-chip--super { background: #e3f0fb; color: #0b4f86; }
.match-passed { margin: 2rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.match-passed summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }

.match-form { max-width: 720px; margin: 0 auto; }
.match-form fieldset { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 1.25rem 0; }
.match-form legend { padding: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; font-size: 1.1rem; color: var(--navy-800); float: left; width: 100%; margin: 0 0 .75rem; }
.match-form legend + * { clear: both; }
.match-form__intro { padding: .9rem 1.1rem; border-radius: 14px; background: var(--ice); margin: 0 0 1rem; }
.match-row { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.match-field { display: grid; gap: .3rem; font-size: .88rem; font-weight: 700; color: var(--ink); }
.match-field input, .match-field select { min-height: 46px; padding: .5rem .8rem; border: 1.5px solid var(--line); border-radius: 12px; font: 500 1rem var(--font-body); color: var(--ink); background: #fff; width: 100%; }
.match-field input:focus-visible, .match-field select:focus-visible { outline: 3px solid rgba(5,148,219,.35); border-color: var(--brand); }
.match-checks { display: flex; flex-wrap: wrap; gap: .5rem; }
.match-check { position: relative; display: inline-flex; }
.match-check input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.match-check span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border: 1.5px solid var(--line); border-radius: 999px; font-size: .92rem; font-weight: 600; color: var(--ink-soft); background: #fff; transition: background .15s, border-color .15s, color .15s; }
.match-check input:checked + span { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.match-check input:focus-visible + span { outline: 3px solid rgba(5,148,219,.45); outline-offset: 2px; }
.match-form .hint { margin: .6rem 0 0; }
.match-form__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0 .5rem; }
@media (max-width: 480px) { .deck { height: min(70vh, 600px); min-height: 440px; } .deck-btn { width: 56px; height: 56px; } .match-tabs button { padding: 0 .75rem; font-size: .86rem; } }
@media (prefers-reduced-motion: reduce) { .mcard, .deck-btn { transition: none; } }
.match-tabs button { white-space: nowrap; }
@media (max-width: 480px) { .match-tabs button svg { display: none; } }

/* Saqqa Match: compare */
.match-item__pick { display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; margin: .35rem .25rem 0; font-size: .88rem; font-weight: 700; cursor: pointer; }
.match-item__pick input { width: 20px; height: 20px; accent-color: var(--navy-800); }
.compare-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem 1rem; margin: 0 0 1.25rem; padding: .6rem 1rem; border-radius: 14px; background: var(--ice); font-size: .92rem; font-weight: 600; }
.compare-bar[hidden], .compare[hidden] { display: none; }
.compare { margin: 0 0 2rem; padding: 1rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; scroll-margin-top: calc(var(--header-h, 72px) + 1rem); }
.compare__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 .75rem; }
.compare__head h2 { margin: 0; }
.compare__scroll { overflow-x: auto; }
.compare__scroll:focus-visible { outline: 3px solid rgba(5,148,219,.45); outline-offset: 2px; }
.compare__table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .92rem; }
.compare__table th, .compare__table td { padding: .6rem .75rem; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare__table thead th, .compare__table thead td { border-top: 0; min-width: 170px; }
.compare__table thead th img, .compare__nophoto { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; margin: 0 0 .4rem; background: var(--ice); }
.compare__nophoto { display: grid; place-items: center; color: var(--ink-soft); font-weight: 500; font-size: .8rem; }
.compare__table thead th span { font-weight: 700; overflow-wrap: anywhere; }
.compare__table tbody th { width: 9.5rem; min-width: 7.5rem; color: var(--ink-soft); font-weight: 700; position: sticky; left: 0; background: #fff; }
.compare__table td strong { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--navy-800); font-variant-numeric: tabular-nums; }
.compare__none { color: var(--ink-soft); font-style: italic; font-size: .85rem; }
.compare__table td .btn { margin: 0 .5rem .35rem 0; }
.compare__table thead th img, .compare__nophoto { max-width: 300px; }

/* Saqqa Match: share choice (long label) and the CRM panel */
.match-check--wide span { border-radius: 16px; padding: .7rem 1rem; line-height: 1.45; min-height: 0; }
.lead-match { margin: 1rem 0; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--ice); }
.lead-match__list { margin: .25rem 0 .5rem; padding-left: 1.1rem; font-size: .92rem; }
.lead-match__list li { margin: .2rem 0; }
/* consent-style choices show a real tick box, so it is plain that they are off until ticked */
.match-check--wide span { align-items: flex-start; }
.match-check--wide span::before { content: ""; flex: 0 0 22px; width: 22px; height: 22px; margin: .05rem .7rem 0 0; border: 2px solid var(--ink-soft); border-radius: 6px; background: #fff; display: grid; place-items: center; font-size: .95rem; font-weight: 800; line-height: 1; color: var(--navy-800); }
.match-check--wide input:checked + span::before { content: "\2713"; border-color: #fff; }

/* Saqqa Match: swipe the photo up to super like (the photo does not scroll the page by touch), and what the deck has learned */
.mcard.is-top .mcard__media { touch-action: none; }
.mcard__taste { margin: .35rem 0 0; font-size: .82rem; font-weight: 700; color: #14803c; }
.match-taste { margin-top: .6rem; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--ice); font-size: .9rem; }
.match-taste p { margin: 0; }
.match-taste__h { margin-top: .5rem !important; font-weight: 700; }
.match-taste ul { margin: .15rem 0 0; padding-left: 1.1rem; }
.match-taste li span { color: var(--ink-soft); }

/* Homepage: Recommended Communities cards (figures only, no photo) */
.ccard { display: flex; flex-direction: column; gap: .15rem; padding: 1rem 1.05rem 1.05rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .15s var(--ease), box-shadow .15s; min-height: 168px; }
a.ccard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
a.ccard:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.ccard__city { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.ccard__name { margin: 0 0 .35rem; font-size: 1.1rem; line-height: 1.25; letter-spacing: -.01em; color: var(--navy-800); overflow-wrap: anywhere; }
.ccard__n { margin: 0; font-size: .92rem; }
.ccard__n strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--navy-800); font-variant-numeric: tabular-nums; margin-right: .15rem; }
.ccard__row { margin: 0; font-size: .85rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.ccard__liked { margin: .45rem 0 0; font-size: .82rem; font-weight: 700; color: #14803c; }
.ccard--blank { gap: .6rem; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .ccard { transition: none; } }
.widget-caption { margin: .7rem 0 0; font-size: .75rem; line-height: 1.45; color: var(--ink-soft); }

/* Careers (homepage "Join us"): a technology-company feel on the navy background, with electric-blue accents */
.careers { --electric: #2bb3ff; position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(4rem, 9vw, 7.5rem); }
.careers::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60rem 34rem at 88% -10%, rgba(43, 179, 255, .20), transparent 60%),
    radial-gradient(40rem 26rem at -8% 108%, rgba(5, 148, 219, .16), transparent 62%),
    linear-gradient(rgba(143, 210, 245, .05) 1px, transparent 1px) 0 0 / 100% 44px,
    linear-gradient(90deg, rgba(143, 210, 245, .05) 1px, transparent 1px) 0 0 / 44px 100%; }
.careers__inner { gap: clamp(2.25rem, 6vw, 5.5rem); }
.careers .eyebrow { color: var(--electric); margin-bottom: 1.1rem; }
.careers .eyebrow::before { background: var(--electric); }
.careers__title { font-size: clamp(2.3rem, 4.8vw, 3.75rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; margin: 0 0 1.1rem; text-wrap: balance; }
.careers__title span { color: var(--electric); display: block; }
.careers__sub { font-size: clamp(1.1rem, 1.7vw, 1.35rem); line-height: 1.4; font-weight: 700; color: #fff; margin: 0 0 1.5rem; max-width: 34ch; text-wrap: balance; }
.careers__copy > p:not([class]) { color: #c9d9e8; font-size: 1.02rem; line-height: 1.7; max-width: 58ch; margin: 0 0 1rem; }
.careers__points { list-style: none; margin: 1.6rem 0 1.4rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem .75rem; max-width: 34rem; }
.careers__points li { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border-radius: 12px; border: 1px solid rgba(143, 210, 245, .22); background: rgba(255, 255, 255, .04); color: #fff; font-weight: 700; font-size: .95rem; line-height: 1.25; }
.careers__points li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--electric); box-shadow: 0 0 0 4px rgba(43, 179, 255, .18); }
.careers__close { color: #c9d9e8; font-size: 1.08rem; line-height: 1.5; margin: 0 0 1.75rem; max-width: 46ch; }
.careers__close strong { color: #fff; display: block; }
.careers__cta { background: linear-gradient(135deg, #6fd0ff, var(--electric)); color: var(--navy-900); font-weight: 800; padding-inline: 1.6rem; box-shadow: 0 10px 30px rgba(43, 179, 255, .30); transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s; }
.careers__cta:hover { color: var(--navy-900); transform: translateY(-2px); box-shadow: 0 16px 40px rgba(43, 179, 255, .42); filter: brightness(1.05); }
.careers__cta:active { transform: translateY(0); }
.careers__cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.careers-visual { border-radius: var(--radius-lg); box-shadow: 0 30px 70px rgba(0, 0, 0, .40), 0 0 0 1px rgba(143, 210, 245, .22); }
.careers-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.careers-visual .cv-dot { animation: cv-pulse 3.2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.careers-visual .cv-dot:nth-child(2) { animation-delay: .6s; } .careers-visual .cv-dot:nth-child(3) { animation-delay: 1.2s; }
@keyframes cv-pulse { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.5); } }
@media (max-width: 899px) { .careers .careers-visual { aspect-ratio: 4 / 3; } }
@media (max-width: 420px) { .careers__points { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .careers-visual .cv-dot { animation: none; } .careers__cta { transition: none; } .careers__cta:hover { transform: none; } }

/* Enquiry forms for signed-in clients: one "Sending as" line in place of the name, email and phone boxes */
.field[hidden], .form-row[hidden] { display: none; }
.form-as { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1rem; flex-wrap: wrap; padding: .8rem 1rem; margin-bottom: 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--ice); }
.form-as p { margin: 0; display: grid; gap: .1rem; min-width: 0; font-size: .92rem; line-height: 1.4; }
.form-as__label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.form-as strong { font-size: 1rem; color: var(--navy-800); overflow-wrap: anywhere; }
.form-as span:last-child { color: var(--ink-soft); overflow-wrap: anywhere; }
.form-as a { font-weight: 700; font-size: .88rem; white-space: nowrap; min-height: 32px; display: inline-flex; align-items: center; }
.form-consent { margin: .25rem 0 1rem; }
.form-next { margin: .9rem 0 0; padding: .8rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: .9rem; line-height: 1.5; }
.form-next a { font-weight: 700; }

/* Optional service feedback: the form page and the card on the account page */
.feedback { max-width: 640px; }
.feedback__q { border: 0; padding: 0; margin: 0 0 1.5rem; }
.feedback__q legend, .feedback .field label { font-weight: 700; font-size: 1.05rem; color: var(--navy-800); margin-bottom: .6rem; padding: 0; }
.feedback small { font-weight: 500; font-size: .8rem; color: var(--ink-soft); margin-left: .35rem; }
.feedback__choices, .stars { display: flex; flex-wrap: wrap; gap: .6rem; }
.feedback__choices label, .stars__opt { position: relative; cursor: pointer; }
.feedback__choices input, .stars__opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.feedback__choices span, .stars__opt > span { display: grid; place-items: center; min-height: 48px; min-width: 88px; padding: 0 1.1rem; border: 2px solid var(--line); border-radius: 999px; background: #fff; font-weight: 700; transition: border-color .15s, background .15s, color .15s; }
.stars__opt > span { min-width: 52px; padding: 0; }
.feedback__choices input:checked + span, .stars__opt input:checked + span { border-color: var(--brand-deep); background: var(--brand-deep); color: #fff; }
.feedback__choices input:focus-visible + span, .stars__opt input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.feedback [data-rating-clear] { margin-top: .5rem; font-size: .85rem; }
.feedback__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0 .75rem; }
.feedback__state h2 { margin-top: 0; }
.feedback-card { padding: 1rem 1.15rem; margin-bottom: 1.25rem; border: 1px solid var(--line); border-radius: 14px; background: var(--ice); }
.feedback-card[hidden] { display: none; }
.feedback-card p { margin: 0; }
.feedback-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: .7rem !important; }
.stars__opt > span { display: flex; align-items: center; justify-content: center; gap: .25rem; min-width: 64px; }
.stars__opt i { font-style: normal; color: #d99a00; }
.stars__opt input:checked + span i { color: #ffd66b; }

/* Location autocomplete (shared): the list sits under whichever field it belongs to */
.suggest-host { position: relative; }
.suggest li strong { overflow-wrap: anywhere; }
.hero-search .suggest { top: calc(100% + 10px); text-align: left; color: var(--ink); }
.city-bar__form .suggest { max-width: 22rem; top: 50px; }

/* Saqqa Match: chosen cities as removable selections */
.match-cities label { display: block; font-weight: 700; margin-bottom: .4rem; }
.city-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 .55rem; padding: 0; }
.city-chips[hidden] { display: none; }
.city-chip { display: inline-flex; align-items: center; gap: .15rem; padding: .2rem .25rem .2rem .8rem; border-radius: 999px; background: var(--brand-deep); color: #fff; font-weight: 700; font-size: .9rem; }
.city-chip button { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 1.15rem; line-height: 1; cursor: pointer; }
.city-chip button:hover, .city-chip button:focus-visible { background: rgba(255, 255, 255, .22); outline: none; }
.match-cities input { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: .5rem .8rem; font: inherit; background: #fff; }

/* Showing request: two preferred dates and times, and the "request, not confirmation" wording */
.when { border: 1px solid var(--line); border-radius: 12px; padding: .8rem .9rem .9rem; margin: 0 0 1rem; min-width: 0; }
.when[hidden] { display: none; }
.when legend { font-weight: 700; font-size: .95rem; padding: 0 .3rem; }
.when legend small { font-weight: 500; font-size: .8rem; color: var(--ink-soft); margin-left: .3rem; }
.when__row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: .6rem; }
.when__label { grid-column: 1 / -1; font-size: .82rem; font-weight: 700; color: var(--ink-soft); }
.when__row .field { margin: 0; min-width: 0; }
.when__row input, .when__row select { width: 100%; min-height: 46px; min-width: 0; cursor: pointer; }
.when__note { margin: .6rem 0 0; padding: .6rem .7rem; border-radius: 10px; background: #fff8e6; border: 1px solid #f0c75e; color: #4a3800; font-size: .82rem; line-height: 1.5; }
@media (max-width: 380px) { .when__row { grid-template-columns: 1fr; } }
/* The hero keeps its look, but the search suggestions may extend below it: only the background media is clipped. */
@supports (overflow: clip) { .hero { overflow-x: clip; overflow-y: visible; } .hero__media { overflow: hidden; } }
.hero-search .suggest { z-index: 60; }

/* Calculators and budget lists: units beside the number, inputs first and results straight after */
.unit { display: flex; align-items: center; gap: .4rem; }
.unit > span { color: var(--ink-soft); font-weight: 700; flex: none; }
.unit input { flex: 1 1 auto; min-width: 0; width: 100%; }
.calc input[data-money], .inv-field__input input[data-money] { font-variant-numeric: tabular-nums; }
.calc__detail { margin: -.35rem 0 .6rem; color: var(--ink-soft); font-size: .88rem; font-variant-numeric: tabular-nums; }
.calc [data-calc-warn][hidden] { display: none; }
.inv-unit { color: var(--ink-soft); font-weight: 700; font-size: .9rem; white-space: nowrap; }
.inv-more { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.inv-more > summary { cursor: pointer; padding: .8rem 1rem; font-weight: 700; min-height: 46px; display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .6rem; list-style-position: inside; }
.inv-more > summary small { font-weight: 500; color: var(--ink-soft); font-size: .8rem; }
.inv-more__grid { display: grid; gap: .7rem 1rem; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); padding: 0 1rem 1rem; }
.inv-results-h { margin: 1.25rem 0 .5rem; }
.inv .inv-out { margin-top: 0; }
.budget-pair { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.budget-pair legend { font-weight: 700; padding: 0; margin-bottom: .4rem; }
.budget-pair select, .match-field select { width: 100%; min-height: 48px; }

/* Down payment: quick-select buttons with the percentage and the dollar amount side by side (both calculators) */
.down-quick { display: flex; flex-wrap: wrap; gap: .4rem; }
.down-quick button { min-height: 40px; min-width: 52px; padding: 0 .85rem; border: 1.5px solid #b9c6d2; border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.down-quick button:hover { border-color: var(--brand-deep); }
.down-quick button[aria-pressed="true"] { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.down-quick button:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.calc__down { grid-column: 1 / -1; display: grid; gap: .45rem; }
.calc__down-label { font-weight: 700; font-size: .85rem; color: var(--navy-800); }
.calc__down-fields, .inv-down__fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: .6rem; max-width: 26rem; }
.calc__ins { margin: -.25rem 0 .6rem; font-size: .88rem; font-weight: 600; color: var(--navy-800); }
.inv-down { grid-column: 1 / -1; display: grid; gap: .45rem; font-size: .9rem; }
@media (prefers-reduced-motion: reduce) { .down-quick button { transition: none; } }

/* SAQQA Smart Map Search: Draw | Include | Exclude | Edit | Clear, and the list of areas in the search */
.map-draw { max-width: min(15rem, calc(100% - 24px)); align-items: flex-start; }
.map-draw__label { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 999px; background: var(--navy-800); color: #fff; font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; box-shadow: var(--shadow-sm); }
.map-draw__label svg { width: 14px; height: 14px; }
.map-draw .btn { min-height: 40px; }
.map-draw__inc { border-left: 4px solid #0594db; }
.map-draw__exc { border-left: 4px solid #b4233a; }
.map-draw .map-draw__exc[aria-pressed="true"] { background: #8e1a2d; }
.area-chips { list-style: none; margin: .1rem 0 0; padding: 0; display: grid; gap: .3rem; max-height: 40vh; overflow-y: auto; }
.area-chips[hidden] { display: none; }
.area-chip { display: flex; align-items: center; gap: .35rem; padding: .2rem .2rem .2rem .55rem; border-radius: 10px; background: #fff; box-shadow: var(--shadow-sm); border-left: 4px solid #0594db; font-size: .8rem; }
.area-chip--exc { border-left-color: #b4233a; }
.area-chip__kind { font-weight: 800; font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; color: var(--brand-deep); }
.area-chip--exc .area-chip__kind { color: #b4233a; }
.area-chip__name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: var(--ink); }
.area-chip button { flex: none; border: 0; background: transparent; cursor: pointer; min-height: 32px; min-width: 32px; border-radius: 8px; font: inherit; font-weight: 700; color: var(--ink-soft); }
.area-chip__save { color: var(--brand-deep) !important; font-size: .78rem !important; padding: 0 .4rem; text-decoration: underline; }
.area-chip__x { font-size: 1.1rem !important; line-height: 1; }
.area-chip button:hover, .area-chip button:focus-visible { background: var(--ice); outline: none; }

/* Saved, named map areas: on the search map and in Saqqa Match preferences */
.my-areas { background: #fff; border-radius: 12px; box-shadow: var(--shadow-sm); width: min(17rem, calc(100vw - 24px)); font-size: .82rem; }
.my-areas[hidden] { display: none; }
.my-areas > summary { cursor: pointer; padding: .5rem .7rem; font-weight: 800; min-height: 40px; display: flex; align-items: center; gap: .3rem; }
.my-areas__list { list-style: none; margin: 0; padding: 0 .5rem; max-height: 38vh; overflow-y: auto; }
.my-areas__hint { margin: 0; padding: .35rem .7rem .55rem; color: var(--ink-soft); font-size: .74rem; }
.my-area { display: grid; grid-template-columns: 1fr auto; gap: .1rem .5rem; padding: .4rem .3rem; border-top: 1px solid var(--line); border-left: 4px solid #0594db; padding-left: .5rem; }
.my-area--exc { border-left-color: #b4233a; }
.my-area__use { grid-column: 1 / -1; display: flex; align-items: center; gap: .5rem; cursor: pointer; min-height: 32px; }
.my-area__use span { display: grid; min-width: 0; }
.my-area__use strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-area__use small { color: var(--ink-soft); font-size: .72rem; }
.my-area input { width: 18px; height: 18px; accent-color: var(--brand-deep); flex: none; }
.my-area__match { display: flex; align-items: center; gap: .35rem; color: var(--ink-soft); cursor: pointer; }
.my-area button { border: 0; background: transparent; color: var(--brand-deep); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; min-height: 32px; padding: 0 .2rem; justify-self: end; }
.my-area button + button { grid-column: 2; }
.match-areas { margin: .9rem 0 .2rem; }
.match-areas[hidden] { display: none; }
.match-areas__h { margin: 0 0 .4rem; font-weight: 700; }
.match-areas__list { list-style: none; margin: 0 0 .4rem; padding: 0; display: grid; gap: .4rem; }
.map-draw__hint a { color: #fff; font-weight: 700; }
/* Phones: the draw tools run across the top of the map; "Search as I move the map" moves to the bottom so nothing overlaps */
@media (max-width: 767px) {
  .map-draw { flex-direction: row; flex-wrap: wrap; align-items: center; gap: .35rem; max-width: calc(100% - 24px); }
  .map-draw .btn { min-height: 40px; padding-inline: .7rem; }
  .map-draw .area-chips, .map-draw .my-areas { flex: 1 1 100%; width: auto; max-width: 20rem; }
  .area-chips { max-height: 22vh; }
  .map-tools { top: auto; bottom: 68px; left: 12px; }
  .map-draw__hint { bottom: 118px; }
}

/* SAQQA Smart Map Search: freehand drawing. The surface sits over the map only while Draw Area is on and takes the
   pointer itself, so a finger draws instead of moving the map or scrolling the page. */
.map-draw__start svg { width: 16px; height: 16px; }
.map-draw__start[aria-pressed="true"] { background: var(--navy-800); color: #fff; }
.draw-surface { position: absolute; inset: 0; z-index: 1; cursor: crosshair; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; background: rgba(4, 38, 74, .06); }
.draw-surface[hidden] { display: none; }
.draw-surface svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.draw-surface polyline { fill: rgba(4, 38, 74, .10); stroke: #04264a; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.area-actions { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 3; width: min(26rem, calc(100% - 24px)); background: #fff; border-radius: 16px; box-shadow: var(--shadow-md, 0 10px 30px rgba(4,38,74,.22)); padding: .8rem .85rem .7rem; display: grid; gap: .55rem; }
.area-actions[hidden] { display: none; }
.area-actions__title { margin: 0; font-weight: 800; color: var(--navy-800); font-size: .95rem; overflow: hidden; text-overflow: ellipsis; }
.area-actions__kinds { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.area-actions__kinds .btn { min-height: 48px; justify-content: center; padding-inline: .5rem; border: 2px solid; background: #fff; font-weight: 800; white-space: normal; text-align: center; line-height: 1.2; }
.area-actions__inc { border-color: #05528f !important; color: #05528f; }
.area-actions__exc { border-color: #b4233a !important; color: #8e1a2d; border-style: dashed !important; }
.area-actions__inc[aria-pressed="true"] { background: #05528f; color: #fff; }
.area-actions__exc[aria-pressed="true"] { background: #8e1a2d; color: #fff; border-style: solid !important; }
.area-actions__more { display: flex; flex-wrap: wrap; gap: .25rem; justify-content: space-between; }
.area-actions__more button { border: 0; background: transparent; font: inherit; font-weight: 700; font-size: .9rem; color: var(--brand-deep); min-height: 44px; min-width: 44px; padding: 0 .7rem; border-radius: 10px; cursor: pointer; }
.area-actions__more button[hidden] { display: none; }
.area-actions__more button:hover, .area-actions__more button:focus-visible, .area-actions__more button[aria-pressed="true"] { background: var(--ice); outline: none; }
.area-actions__more [data-area-delete] { color: #8e1a2d; }
.area-actions__note { margin: 0; font-size: .84rem; color: var(--ink-soft); }
.area-actions__note[hidden] { display: none; }
.area-chip.is-selected { outline: 2px solid var(--navy-800); }
.area-chip__main { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: .35rem; text-align: left; padding: 0 .2rem !important; }
/* a point of an area being edited: a large invisible target with a visible dot, easy to grab with a finger */
.area-handle { width: 36px; height: 36px; display: grid; place-items: center; cursor: grab; touch-action: none; }
.area-handle::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid #05528f; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.area-handle--exc::after { border-color: #b4233a; }
.area-handle--new::after { border-color: #04264a; }
@media (max-width: 767px) {
  .map-draw .btn { min-height: 44px; }
  .area-chip button { min-height: 40px; min-width: 40px; }
  .area-actions { bottom: 72px; }
  /* one thing at a time at the bottom of a small map */
  .map-pane:has(.area-actions:not([hidden])) .map-tools, .map-pane:has(.draw-surface:not([hidden])) .map-tools { display: none; }
}

/* Saqqa Match: the compact map inside the Where section (js/match.js), with the shared drawing tools */
.match-map { margin-top: 1rem; }
.match-map__pane { position: relative; height: clamp(280px, 46vh, 380px); border-radius: 14px; overflow: hidden; background: var(--ice); border: 1px solid var(--line); }
.match-map__pane > .map { position: absolute; inset: 0; }
.match-map__pane .map-draw { flex-direction: row; flex-wrap: wrap; max-width: calc(100% - 24px); }
.match-map__pane .map-draw .btn { min-height: 44px; }
.match-map__pane .area-actions { bottom: 10px; }
.match-map__pane .map-draw__hint { bottom: 10px; }
.match-map__pane.is-expanded { position: fixed; inset: 0; z-index: 1200; height: auto; border-radius: 0; border: 0; }
html.match-map-open { overflow: hidden; }
.match-map__pane a.pin { display: inline-block; text-decoration: none; }
.match-map__chips { margin-top: .6rem; max-height: none; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.match-map__chips .area-chip { box-shadow: none; border: 1px solid var(--line); border-left-width: 4px; }
.area-chip.is-off { opacity: .6; }
.area-chip__use { flex: none; display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; color: var(--ink-soft); cursor: pointer; min-height: 40px; padding: 0 .3rem; }
.area-chip__use input { width: 18px; height: 18px; accent-color: var(--brand-deep); }

/* Complete Your SAQQA Realty Account: the two verification steps (account page), and the bar on other pages */
.verify { max-width: 40rem; margin-inline: auto; }
.verify[hidden] { display: none; }
.verify h2 { outline: none; }
.verify-progress { font-weight: 800; color: var(--brand-deep); margin: 0 0 1rem; }
.verify-step { border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.25rem; margin: 0 0 1rem; background: #fff; }
.verify-step[hidden] { display: none; }
.verify-step h3 { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .7rem; margin: 0; font-size: 1.08rem; }
.verify-step__n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy-800); color: #fff; font-size: .9rem; flex: none; }
.verify-step__state { margin-left: auto; font-size: .82rem; font-weight: 800; padding: .2rem .6rem; border-radius: 999px; background: #fff3cd; color: #6b4e00; white-space: nowrap; }
.verify-step.is-done { border-color: #b9e3c8; background: #f4fbf6; }
.verify-step.is-done .verify-step__n { background: #14803c; }
.verify-step.is-done .verify-step__state { background: #e7f6ec; color: #0b5d2a; }
.verify-step [data-verify-body] { margin-top: .9rem; }
.verify-step [data-verify-body][hidden], .verify-code[hidden] { display: none; }
.verify-step p { margin: 0 0 .7rem; }
.verify-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .9rem; }
.verify-actions .btn, .verify-actions .link-button { min-height: 44px; }
.verify-step input { width: 100%; min-height: 48px; padding: .5rem .8rem; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; }
.verify-step #vp-code { max-width: 12rem; letter-spacing: .2em; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.verify-foot { color: var(--ink-soft); font-size: .92rem; }
.verify-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem 1rem; padding: .7rem 1rem; background: var(--navy-800); color: #fff; font-size: .92rem; text-align: center; }
.verify-bar .btn { min-height: 40px; }

/* The registrant question (sign-up and the access card) and the welcome for Ontario real estate professionals */
.field--choice { border: 0; padding: 0; margin: 0 0 1.1rem; min-width: 0; }
.field--choice legend { font-weight: 700; font-size: .95rem; color: var(--navy-800); margin-bottom: .55rem; padding: 0; line-height: 1.4; }
.choice-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice-row .choice span { min-width: 76px; justify-content: center; font-weight: 700; }
.field--choice .error { display: none; }
.field--choice.invalid .error { display: block; }
.registrant-card { padding: 1.1rem 1.25rem; margin-bottom: 1.25rem; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 14px; background: var(--ice); }
.registrant-card[hidden] { display: none; }
.registrant-card p { margin: 0; }
.registrant-card__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .9rem !important; }
.field--choice .hint { margin-top: .6rem; }
.pill--licensed { background: var(--navy-800); color: #fff; }
.prop-aside .registrant-card, [data-cash-grid] .registrant-card { margin-bottom: 1rem; }
.vow-review { margin-top: .9rem; font-size: .95rem; }
.vow-review > summary { cursor: pointer; font-weight: 700; color: var(--brand-deep); min-height: 40px; display: flex; align-items: center; }
.vow-review > p { margin: .5rem 0 1rem; }

/* ---------- SAQQA Match Together (js/match-together.js) ---------- */
.mt { max-width: 1100px; margin: 0 auto; }
.mt [hidden] { display: none !important; }
.mt-flash { max-width: 720px; margin: 0 auto 1rem; padding: .8rem 1rem; border-radius: 12px; background: #e8f5ee; color: #14532d; font-weight: 700; text-align: center; }
.mt-flash.is-error { background: #fdecec; color: #8a1c1c; }
.mt-flash[hidden], .mt-matched[hidden], .mt-waiting[hidden] { display: none; }
.mt-panel, .mt-intro { max-width: 640px; margin: 0 auto 1.5rem; padding: clamp(1.25rem, 4vw, 2rem); border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.mt-intro { text-align: center; }
.mt-privacy { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .5rem; text-align: left; font-size: .92rem; color: var(--ink-soft); }
.mt-privacy li { padding: .7rem .9rem; border-radius: 12px; background: var(--ice); }
.mt-box { max-width: 640px; margin: 0 auto 1.25rem; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.mt-h { margin: 0 0 .75rem; font: 800 1.05rem var(--font-body); color: var(--navy-800); }
.mt-h--sm { font-size: .92rem; margin-top: 1rem; }
.mt-groups, .mt-members, .mt-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.mt-group { display: block; width: 100%; min-height: 56px; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: left; font: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.mt-group:hover, .mt-group:focus-visible { border-color: var(--brand-deep); box-shadow: var(--shadow-sm); }
.mt-group__name { display: block; font-weight: 800; color: var(--navy-800); overflow-wrap: anywhere; }
.mt-group__meta { display: block; font-size: .86rem; color: var(--ink-soft); margin-top: .15rem; }
.mt-create { display: grid; gap: .75rem; grid-template-columns: 1fr 1fr auto; align-items: end; }
.mt-create input[type=text], .mt-newlink input { width: 100%; min-height: 44px; padding: 0 .8rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.mt-create .btn { min-height: 44px; }
.mt-head { text-align: center; margin: 0 0 1rem; }
.mt-head h2 { margin: .25rem 0; overflow-wrap: anywhere; }
.mt-sub { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.mt-back { min-height: 44px; }
.mt-waiting { max-width: 640px; margin: 0 auto 1rem; }
.mt-tabs { margin-bottom: 1.25rem; }
.mt-matched { max-width: 430px; margin: 0 auto .75rem; padding: .7rem 1rem; border-radius: 12px; background: #fff6da; color: #5a4300; text-align: center; }
.mt-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: .75rem 0 0; }
.mt-panel .mt-actions { justify-content: center; }
.mt-members li, .mt-links li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem .75rem; min-height: 44px; padding: .4rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.mt-members li:last-child, .mt-links li:last-child { border-bottom: 0; }
.mt-member__name { font-weight: 800; color: var(--navy-800); }
.mt-member__name em { font-style: normal; font-weight: 600; color: var(--ink-soft); }
.mt-member__role { color: var(--ink-soft); font-size: .86rem; margin-right: auto; }
.mt-members .link-button, .mt-links .link-button { min-height: 44px; }
.mt-danger { color: #8a1c1c; border-color: #e7b8b8; }
.mt-section { margin: 0 0 2rem; }
.mt-section__h { display: flex; align-items: center; gap: .5rem; margin: 0 0 .25rem; font: 800 1.15rem var(--font-body); color: var(--navy-800); }
.mt-section .hint { margin: 0 0 .9rem; color: var(--ink-soft); font-size: .9rem; }
.mt-badge { padding: .2rem .65rem; border-radius: 999px; background: var(--ice); color: var(--navy-800); font-weight: 800; }
.mt-badge--perfect { background: #14532d; color: #fff; }
.mt-badge--fav { background: #0b4f86; color: #fff; }
.mt-badge--mutual { background: #e3f0fb; color: #0b4f86; }
.mt-item__counts { color: var(--ink-soft); font-weight: 600; }
.mt-item__mine { font-weight: 600; color: var(--ink-soft); }
.mt-item__answer { display: inline-flex; gap: .4rem; }
.mt-item__answer .btn { min-height: 40px; }
.match-home__together { margin-top: .9rem; }
.match-home__together svg { width: 18px; height: 18px; vertical-align: -3px; }
@media (max-width: 640px) { .mt-create { grid-template-columns: 1fr; } .mt-box { padding: 1rem; } }
/* four tabs do not fit in one row on a phone: two rows of two */
@media (max-width: 480px) { .match-tabs:not(.mt-tabs) { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 22px; } .match-tabs:not(.mt-tabs) button { justify-content: center; } }

/* ---------- SAQQA Match Together, Phase 2 (js/match-together-collab.js) ---------- */
.mt-tabs { flex-wrap: wrap; justify-content: center; width: auto; max-width: 760px; border-radius: 22px; }
.mt-tabs .badge { margin-left: .25rem; }
.mt-head__links { margin: .35rem 0 0; }
.mt-head__links .link-button { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; }
.mt-head__links svg { width: 18px; height: 18px; }
.mt-x { margin: .5rem .25rem 0; }
.mt-votes { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; }
.mt-vote { min-height: 44px; padding: .3rem .4rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: 700 .82rem var(--font-body); color: var(--navy-800); cursor: pointer; }
.mt-vote b { display: inline-block; min-width: 1.2em; margin-left: .15rem; padding: 0 .3rem; border-radius: 999px; background: var(--ice); font-weight: 800; }
.mt-vote[aria-pressed="true"] { border-color: var(--navy-800); background: var(--navy-800); color: #fff; }
.mt-vote[aria-pressed="true"] b { background: rgba(255, 255, 255, .22); color: #fff; }
.mt-vote--interested[aria-pressed="true"] { border-color: #14532d; background: #14532d; }
.mt-vote--not[aria-pressed="true"] { border-color: #8a1c1c; background: #8a1c1c; }
.mt-vote:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.mt-votes__note { margin: .35rem 0 0; font-size: .82rem; color: var(--ink-soft); }
.mt-x__row .link-button { min-height: 40px; }
.mt-gone { padding: 1.1rem; border: 1px dashed var(--line); border-radius: 16px; background: var(--ice); color: var(--ink-soft); }
.mt-gone__h { margin: 0 0 .35rem; font-weight: 800; color: #8a1c1c; }
.mt-showings { max-width: 760px; margin: 0 auto 1.5rem; }
.mt-showing { margin: 0 0 1rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.mt-showing--sent { background: var(--ice); }
.mt-showing__h { margin: 0 0 .4rem; font: 800 1rem var(--font-body); color: var(--navy-800); }
.mt-showing__times { display: grid; gap: .15rem; margin: 0 0 .6rem; }
.mt-showing__by { color: var(--ink-soft); font-size: .86rem; }
.mt-showing__replies { list-style: none; margin: 0 0 .75rem; padding: 0; }
.mt-showing__replies li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .15rem .75rem; padding: .4rem 0; border-top: 1px solid var(--line); font-size: .92rem; }
.mt-showing__replies li span:first-child { font-weight: 700; color: var(--navy-800); }
.mt-showing__q { margin: 0 0 .4rem; font-weight: 800; }
.mt-showing__mine, .mt-showing__send { display: grid; gap: .45rem; margin: 0 0 .75rem; }
.mt-showing__note { margin: .5rem 0 0; padding: .6rem .8rem; border-radius: 10px; background: #fff6da; color: #5a4300; font-size: .9rem; }
.mt-prefs { max-width: 760px; margin: 0 auto; }
.mt-prefs__note { margin: 0 0 1.25rem; }
.mt-proposals { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.mt-proposal { padding: .8rem .9rem; border-radius: 12px; background: var(--ice); }
.mt-proposal p { margin: 0; }
.mt-proposal__what { display: block; margin-top: .25rem; color: var(--ink-soft); }
.mt-chip-note { font-size: .78rem; font-weight: 800; opacity: .85; }
.mt-activity { list-style: none; max-width: 760px; margin: 0 auto 1rem; padding: 0; }
.mt-act { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .15rem 1rem; padding: .75rem .25rem; border-bottom: 1px solid var(--line); }
.mt-act.is-new { background: #f3f9ff; }
.mt-act__when { color: var(--ink-soft); font-size: .84rem; white-space: nowrap; }
.mt-sheet { position: fixed; inset: 0; z-index: 1300; display: grid; place-items: end center; background: rgba(4, 22, 43, .55); }
.mt-sheet[hidden] { display: none !important; }
html.mt-sheet-open { overflow: hidden; }
.mt-sheet__panel { width: min(100%, 620px); max-height: min(92dvh, 860px); overflow-y: auto; overscroll-behavior: contain; padding: 1.1rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; background: #fff; box-shadow: 0 -10px 40px rgba(4, 22, 43, .25); }
.mt-sheet__panel:focus { outline: none; }
.mt-sheet__head { position: sticky; top: -1.1rem; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: -1.1rem -1.25rem .75rem; padding: .9rem 1.25rem; background: #fff; border-bottom: 1px solid var(--line); }
.mt-sheet__head h2 { margin: 0; overflow-wrap: anywhere; }
.mt-sheet__head .btn { min-height: 44px; }
.mt-sheet__home { display: flex; gap: .9rem; align-items: flex-start; margin: 0 0 .75rem; }
.mt-sheet__home img { width: 120px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.mt-sheet__home p { margin: 0 0 .2rem; }
.mt-sheet__price { font: 800 1.2rem var(--font-body); color: var(--navy-800); }
.mt-sheet__line { color: var(--ink-soft); }
.mt-sheet .mt-h { margin-top: 1.1rem; }
.mt-comments { list-style: none; margin: .5rem 0 1rem; padding: 0; display: grid; gap: .6rem; }
.mt-c { padding: .7rem .85rem; border-radius: 12px; background: var(--ice); }
.mt-c--none { color: var(--ink-soft); }
.mt-c p { margin: 0; }
.mt-c__meta span { color: var(--ink-soft); font-size: .84rem; margin-left: .35rem; }
.mt-c__body { margin-top: .25rem !important; overflow-wrap: anywhere; }
.mt-c__actions { margin-top: .35rem !important; display: flex; gap: 1rem; }
.mt-c__actions .link-button { min-height: 36px; font-size: .88rem; }
.mt-c textarea, .mt-c-form textarea { width: 100%; min-height: 84px; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 12px; font: inherit; resize: vertical; }
.mt-showing-form { display: grid; gap: .75rem; }
@media (min-width: 720px) { .mt-sheet { place-items: center; } .mt-sheet__panel { border-radius: 20px; } }
@media (max-width: 480px) { .mt-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; } .mt-tabs button { justify-content: center; } .mt-tabs button:last-child { grid-column: 1 / -1; } .mt-vote { font-size: .78rem; } .mt-sheet__home img { width: 96px; } }

/* ---------- Match Together: activity rows that open their item, and the current / proposed comparison ---------- */
.mt-activity li { border-bottom: 1px solid var(--line); }
button.mt-act { display: grid; grid-template-columns: 10px 1fr auto; align-items: start; gap: .15rem .7rem; width: 100%; min-height: 56px; padding: .8rem .5rem; border: 0; border-radius: 10px; background: transparent; font: inherit; color: inherit; text-align: left; cursor: pointer; }
button.mt-act:hover, button.mt-act:focus-visible { background: var(--ice); }
button.mt-act:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
button.mt-act[disabled] { cursor: default; }
button.mt-act.is-new { background: #f3f9ff; }
button.mt-act.is-new .mt-act__text { font-weight: 600; }
button.mt-act.is-busy { opacity: .6; }
.mt-act__dot { width: 9px; height: 9px; margin-top: .45rem; border-radius: 50%; background: transparent; }
.mt-act.is-new .mt-act__dot { background: var(--brand-deep); }
.mt-act__go { display: inline-block; margin-left: .2rem; font-weight: 800; color: var(--brand-deep); white-space: nowrap; }
.mt-activity__tools { max-width: 760px; margin: 0 auto .25rem; text-align: right; }
.mt-activity__tools .link-button { min-height: 44px; }
.mt-spot { outline: 3px solid var(--brand); outline-offset: 4px; border-radius: 14px; animation: mt-spot 1.6s ease-out 1; }
@keyframes mt-spot { 0% { box-shadow: 0 0 0 0 rgba(5, 148, 219, .45); } 100% { box-shadow: 0 0 0 18px rgba(5, 148, 219, 0); } }
@media (prefers-reduced-motion: reduce) { .mt-spot { animation: none; } }
.mt-proposal__when { color: var(--ink-soft); font-size: .84rem; margin-left: .25rem; white-space: nowrap; }
.mt-compare { margin: .6rem 0 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.mt-compare table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.mt-compare th, .mt-compare td { padding: .55rem .7rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.mt-compare tr:last-child th, .mt-compare tr:last-child td { border-bottom: 0; }
.mt-compare thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); background: var(--ice); }
.mt-compare tbody th { font-weight: 700; color: var(--navy-800); }
.mt-compare tr.is-changed td:last-child { background: #fff6da; font-weight: 800; color: #5a4300; }
.mt-compare__all { margin: .6rem 0 0; }
.mt-compare__all summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 700; color: var(--brand-deep); }
.mt-outcome { border-color: var(--brand-deep); }
.mt-outcome:focus { outline: none; }
.mt-outcome__h { margin: 0 0 .35rem; font-weight: 800; color: var(--navy-800); }
.mt-outcome__note { margin: .5rem 0; padding: .6rem .8rem; border-radius: 10px; background: #fff6da; color: #5a4300; font-size: .9rem; }
@media (max-width: 480px) { button.mt-act { grid-template-columns: 10px 1fr; } .mt-act__when { grid-column: 2; } .mt-compare th, .mt-compare td { padding: .5rem .5rem; font-size: .86rem; } }

/* ---------- SAQQA Match Together, Phase 3: Investment Analysis (js/match-together-invest.js) ---------- */
.mt-invest__note { max-width: 760px; margin: 0 auto 1rem; }
.mt-fold > summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; min-height: 44px; cursor: pointer; list-style: none; }
.mt-fold > summary::-webkit-details-marker { display: none; }
.mt-fold > summary .mt-h { margin: 0; }
.mt-fold > summary .mt-h::before { content: "+ "; color: var(--brand-deep); }
.mt-fold[open] > summary .mt-h::before { content: "\2212  "; }
.mt-fold__line { color: var(--ink-soft); font-size: .9rem; }
.mt-fold[open] > summary { margin-bottom: .75rem; }
.mt-inv-form { display: grid; gap: .9rem; }
.mt-inv-form input, .mt-inv-form select, .mt-inv-field input, .mt-inv-save input, .mt-plan input[type=number], .mt-create input[type=number] { width: 100%; min-height: 44px; padding: 0 .7rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.mt-inv-head { margin: .6rem .25rem 0; padding: .7rem .8rem; border-radius: 12px; background: var(--ice); }
.mt-inv-head__scn { margin: 0 0 .45rem; font-size: .86rem; color: var(--ink-soft); }
.mt-inv-head__none, .mt-inv-results > .mt-inv-head__none { margin: 0; font-size: .9rem; color: #5a4300; }
.mt-tag { display: inline-block; padding: .05rem .5rem; border-radius: 999px; background: var(--navy-800); color: #fff; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.mt-tag--soft { background: #fff; color: var(--ink-soft); border: 1px solid var(--line); }
.mt-inv-nums { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem .75rem; margin: 0; }
.mt-inv-nums div { min-width: 0; }
.mt-inv-nums dt { font-size: .76rem; color: var(--ink-soft); }
.mt-inv-nums dd { margin: 0; font: 800 1.02rem var(--font-body); color: var(--navy-800); font-variant-numeric: tabular-nums; }
.mt-inv-nums dd small { font-weight: 600; color: var(--ink-soft); }
.mt-inv-nums dd.is-neg { color: #8a1c1c; }
.mt-inv-nums--big { padding: .9rem; border-radius: 14px; background: var(--ice); }
.mt-inv-nums--big dd { font-size: 1.25rem; }
.mt-badge--ready { background: #5a4300; color: #fff; }
.mt-check { list-style: none; margin: .5rem .25rem 0; padding: 0; font-size: .86rem; }
.mt-check li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .1rem .75rem; padding: .3rem 0; border-top: 1px solid var(--line); }
.mt-check li span:first-child { font-weight: 700; color: var(--navy-800); }
.mt-check__meets span:last-child { color: #14532d; font-weight: 700; }
.mt-check__below span:last-child { color: #8a1c1c; font-weight: 700; }
.mt-check__unknown span:last-child { color: var(--ink-soft); }
.mt-sheet__panel--wide { width: min(100%, 900px); }
.mt-inv-est { margin: 0 0 .75rem; padding: .5rem .8rem; border-radius: 10px; background: #fff6da; color: #5a4300; font-size: .88rem; }
.mt-scns { display: flex; gap: .4rem; margin: 0 -1.25rem .75rem; padding: 0 1.25rem .25rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.mt-scn { flex: 0 0 auto; min-height: 44px; padding: .3rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: 700 .9rem var(--font-body); color: var(--navy-800); cursor: pointer; white-space: nowrap; }
.mt-scn small { font-weight: 600; color: var(--ink-soft); }
.mt-scn.is-on { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.mt-scn.is-on small { color: #cfe0ef; }
.mt-inv-cols { display: grid; gap: 1rem; }
.mt-inv-group { border: 1px solid var(--line); border-radius: 12px; margin: 0 0 .6rem; padding: 0 .8rem; background: #fff; }
.mt-inv-group > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 800; color: var(--navy-800); }
.mt-inv-field { display: grid; grid-template-columns: 1fr 9.5rem; gap: .15rem .6rem; align-items: center; padding: .45rem 0; border-top: 1px solid var(--line); }
.mt-inv-field label { font-weight: 700; font-size: .92rem; }
.mt-inv-field label small { display: block; font-weight: 500; color: var(--ink-soft); }
.mt-inv-field input { text-align: right; font-variant-numeric: tabular-nums; }
.mt-inv-field input.is-bad { border-color: #b4233a; background: #fdecec; }
.mt-inv-field input:disabled { background: var(--ice); color: var(--ink-soft); }
.mt-src { grid-column: 1 / -1; font-size: .78rem; color: var(--ink-soft); }
.mt-src--yours { color: var(--brand-deep); font-weight: 800; }
.mt-src--none { color: #8a1c1c; font-weight: 700; }
.mt-inv-reset { grid-column: 1 / -1; justify-self: start; min-height: 32px; font-size: .82rem; }
.mt-inv-lines { margin: .75rem 0 0; }
.mt-inv-lines div { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-top: 1px solid var(--line); font-size: .93rem; }
.mt-inv-lines dt { color: var(--ink-soft); }
.mt-inv-lines dd { margin: 0; font-weight: 700; color: var(--navy-800); font-variant-numeric: tabular-nums; text-align: right; }
.mt-inv-lines dd small { font-weight: 600; color: var(--ink-soft); }
.mt-inv-lines .is-strong dd { font-size: 1.05rem; }
.mt-inv-more { margin: .6rem 0 0; }
.mt-inv-more > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 700; color: var(--brand-deep); }
.mt-inv-results .mt-check { margin-left: 0; margin-right: 0; }
.mt-inv-actions { margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.mt-inv-save { display: grid; grid-template-columns: 1fr auto; gap: .6rem; align-items: end; }
.mt-inv-save .btn { min-height: 44px; }
.mt-inv-ready { margin: 1rem 0 0; padding: .9rem; border-radius: 14px; background: var(--ice); }
.mt-inv-enquiry { margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--line); }
.mt-plan { margin: 0 0 1rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.mt-plan h4 small { display: block; font-weight: 600; color: var(--ink-soft); }
.mt-plan__mine { display: grid; gap: .5rem; margin: .75rem 0 0; }
@media (min-width: 820px) { .mt-inv-cols { grid-template-columns: 1fr 1fr; align-items: start; } .mt-inv-nums { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .mt-inv-field { grid-template-columns: 1fr 7.5rem; } .mt-inv-save { grid-template-columns: 1fr; } .mt-tabs button:last-child { grid-column: auto; } }

/* ---------- Mobile menu: "Book a Free Consultation" ----------
   SAQQA's logo dark blue with white text (about 8:1), a light-blue edge so the pill stands out on the navy menu,
   icon, words and arrow centred as one group. Same link as before. */
.mobile-nav a.mobile-nav__cta {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  width: 100%; min-height: 56px; margin-top: 2rem; padding: .9rem 1.5rem;
  border: 1px solid rgba(30, 163, 227, .6); border-radius: 999px;
  background: linear-gradient(180deg, #0a63a8 0%, var(--brand-deep) 100%); color: #fff;
  font: 600 1.02rem/1.2 var(--font-body); letter-spacing: .01em; text-align: center;
  box-shadow: 0 10px 26px rgba(5, 148, 219, .28), inset 0 1px 0 rgba(255, 255, 255, .16);
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease), filter .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav__cta span { min-width: 0; }
.mobile-nav__cta svg { flex: 0 0 auto; width: 20px; height: 20px; transform: none; }
.mobile-nav__cta svg.mobile-nav__cta-go { width: 17px; height: 17px; opacity: .85; }
.mobile-nav a.mobile-nav__cta:hover { color: #fff; filter: brightness(1.1); border-color: var(--brand-sky); box-shadow: 0 12px 30px rgba(5, 148, 219, .38), inset 0 1px 0 rgba(255, 255, 255, .2); }
.mobile-nav__cta:hover svg { transform: none; }
.mobile-nav__cta:hover svg.mobile-nav__cta-go { transform: translate(2px, -2px); opacity: 1; }
.mobile-nav a.mobile-nav__cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.mobile-nav a.mobile-nav__cta:active { transform: scale(.98); filter: brightness(.95); box-shadow: 0 4px 12px rgba(5, 148, 219, .25); }
.mobile-nav__cta + .mobile-nav__phone { margin-top: .5rem; }
@media (max-width: 359px) { .mobile-nav a.mobile-nav__cta { gap: .45rem; padding-inline: 1rem; font-size: .95rem; } }
@media (prefers-reduced-motion: reduce) { .mobile-nav a.mobile-nav__cta, .mobile-nav__cta svg { transition: none; } }

/* ---------- SAQQA Tools (js/tools.js) and the Agent roster tab of the Staff Dashboard ---------- */
.tools-gate { max-width: 620px; }
.tools-head { max-width: 900px; margin: 0 auto 1.25rem; }
.tools-head__role { margin: .25rem 0 0; color: var(--ink-soft); }
.tools-modules { max-width: 900px; margin: 0 auto; display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tools-module { display: block; min-height: 96px; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.tools-module:hover, .tools-module:focus-visible { border-color: var(--brand-deep); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.tools-module strong { display: block; font: 800 1.08rem var(--font-body); color: var(--navy-800); }
.tools-module span { display: block; margin-top: .25rem; color: var(--ink-soft); font-size: .92rem; }
.roster-req { margin: 0 0 1rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.roster-req h3 { margin: 0 0 .25rem; font: 800 1.05rem var(--font-body); color: var(--navy-800); }
.roster-req p { margin: 0 0 .5rem; }
.roster-req__form { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; }
.roster-req__form .mini input, .roster-req__form .mini select { min-height: 40px; min-width: 220px; }
.roster-status { display: inline-block; padding: .15rem .6rem; border-radius: 999px; background: var(--ice); font-weight: 800; font-size: .84rem; color: var(--navy-800); white-space: nowrap; }
.roster-status--active { background: #e8f5ee; color: #14532d; }
.roster-status--suspended { background: #fff6da; color: #5a4300; }
.roster-status--terminated, .roster-status--rejected { background: #fdecec; color: #8a1c1c; }
.roster-move { margin-top: .3rem; max-width: 180px; }
.roster-history ul { margin: .4rem 0 0; padding-left: 1.1rem; font-size: .88rem; }
.admin-flash { padding: .7rem 1rem; border-radius: 12px; background: #e8f5ee; color: #14532d; font-weight: 700; }

/* ---------- SAQQA Tools, Stage 1B: the agent CRM (js/tools-crm.js) ---------- */
.tools-app { max-width: 1100px; margin: 0 auto; }
.tools-app [hidden] { display: none !important; }
.tools-nav { flex-wrap: wrap; justify-content: center; width: auto; border-radius: 22px; }
.tools-nav__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: 999px; font: 700 .92rem var(--font-body); color: var(--brand-deep); text-decoration: none; white-space: nowrap; }
.tools-nav__link:hover { background: #fff; }
.tools-empty { color: var(--ink-soft); margin: .5rem 0; }
.tools-banner { margin: 0 0 1rem; padding: .8rem 1rem; border-radius: 12px; background: #fff6da; color: #5a4300; }
.tools-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin: 0 0 1rem; }
.tools-card { margin: 0 0 1rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; min-width: 0; }
.tools-card h3 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .6rem; font: 800 1.05rem var(--font-body); color: var(--navy-800); }
.tools-card.is-alert { border-color: #e7b8b8; background: #fffafa; }
.tools-card--mgmt { background: var(--ice); }
.tools-tasks, .tools-recent, .tools-clients, .tools-timeline { list-style: none; margin: 0; padding: 0; }
.tools-task { display: grid; grid-template-columns: 44px 1fr auto; gap: .25rem .5rem; align-items: start; padding: .55rem 0; border-top: 1px solid var(--line); }
.tools-task:first-child { border-top: 0; }
.tools-task__done { display: grid; place-items: center; min-height: 44px; cursor: pointer; }
.tools-task__done input { width: 22px; height: 22px; accent-color: var(--navy-800); }
.tools-task__title { margin: 0; font-weight: 700; color: var(--navy-800); overflow-wrap: anywhere; }
.tools-task__meta, .tools-task__note, .tools-client__meta { margin: .1rem 0 0; font-size: .86rem; color: var(--ink-soft); }
.tools-task--overdue .tools-task__meta { color: #8a1c1c; font-weight: 700; }
.tools-task--done .tools-task__title { text-decoration: line-through; color: var(--ink-soft); }
.tools-task__snooze { min-height: 40px; max-width: 7.5rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-size: .86rem; }
.tools-tag { display: inline-block; padding: .05rem .5rem; border-radius: 999px; background: var(--ice); font-size: .74rem; font-weight: 800; color: var(--navy-800); white-space: nowrap; }
.tools-tag--high { background: #fdecec; color: #8a1c1c; }
.tools-recent li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .15rem 1rem; padding: .5rem 0; border-top: 1px solid var(--line); }
.tools-recent li:first-child { border-top: 0; }
.tools-recent span { color: var(--ink-soft); font-size: .86rem; }
.tools-pipe__name { margin: .5rem 0 .25rem; font-weight: 800; }
.tools-pipe { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.tools-pipe li { padding: .25rem .7rem; border-radius: 999px; background: var(--ice); font-size: .88rem; }
.tools-toolbar { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: end; margin: 0 0 1rem; }
.tools-toolbar .match-field { flex: 1 1 180px; }
.tools-toolbar__end { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-left: auto; }
.tools-toolbar input[type=search], .tools-toolbar select, .tools-form input:not([type=checkbox]), .tools-form select, .tools-form textarea, .tools-kard select, .tools-file select { width: 100%; min-height: 44px; padding: 0 .7rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.tools-form textarea { padding: .6rem .7rem; resize: vertical; }
.tools-form { display: grid; gap: .75rem; }
.tools-form--inline { grid-template-columns: 1fr 1fr auto; align-items: end; margin-top: .75rem; }
.tools-form--inline .btn, .tools-form .mt-actions select { min-height: 44px; }
.tools-form .mt-actions select { width: auto; }
.tools-seg { display: inline-flex; padding: .2rem; border-radius: 999px; background: var(--ice); }
.tools-seg button, .tools-pill { min-height: 40px; padding: 0 .9rem; border: 0; border-radius: 999px; background: transparent; font: 700 .88rem var(--font-body); color: var(--ink-soft); cursor: pointer; }
.tools-seg button[aria-pressed="true"], .tools-pill[aria-pressed="true"] { background: #fff; color: var(--navy-800); box-shadow: var(--shadow-sm); }
.tools-pills { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 .75rem; padding: .2rem; border-radius: 18px; background: var(--ice); width: fit-content; max-width: 100%; }
.tools-count { margin: 0 0 .5rem; color: var(--ink-soft); font-size: .9rem; }
.tools-clients { display: grid; gap: .6rem; }
.tools-client { display: grid; gap: .2rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: inherit; text-decoration: none; }
.tools-client:hover, .tools-client:focus-visible { border-color: var(--brand-deep); box-shadow: var(--shadow-sm); }
.tools-client__name { font: 800 1.02rem var(--font-body); color: var(--navy-800); }
.tools-client__files { display: flex; flex-wrap: wrap; gap: .3rem; }
.tools-chip { padding: .1rem .6rem; border-radius: 999px; background: #e3f0fb; color: #0b4f86; font-size: .8rem; font-weight: 700; }
.tools-chip--paused, .tools-chip--inactive { background: var(--ice); color: var(--ink-soft); }
.tools-chip--lost { background: #fdecec; color: #8a1c1c; }
.tools-board { display: flex; gap: .75rem; overflow-x: auto; padding: .25rem .1rem 1rem; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.tools-col { flex: 0 0 240px; padding: .6rem; border-radius: 14px; background: var(--ice); scroll-snap-align: start; }
.tools-col h3 { display: flex; justify-content: space-between; align-items: center; gap: .4rem; margin: 0 0 .5rem; font: 800 .86rem var(--font-body); color: var(--navy-800); }
.tools-kard { display: grid; gap: .3rem; margin: 0 0 .5rem; padding: .6rem; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: .9rem; }
.tools-kard--paused, .tools-kard--inactive, .tools-kard--lost { opacity: .7; }
.tools-kard span { color: var(--ink-soft); font-size: .84rem; }
.tools-kard select { min-height: 40px; font-size: .86rem; }
.tools-profile { margin: 0 0 1rem; }
.tools-profile h2 { margin: 0 0 .15rem; overflow-wrap: anywhere; }
.tools-profile p { margin: 0; }
.tools-file { padding: .6rem 0; border-top: 1px solid var(--line); }
.tools-file:first-of-type { border-top: 0; }
.tools-file__name { margin: 0 0 .4rem; font-weight: 800; color: var(--navy-800); }
.tools-facts { margin: 0; display: grid; gap: .1rem; }
.tools-facts div { display: grid; grid-template-columns: 11rem 1fr; gap: .5rem; padding: .4rem 0; border-top: 1px solid var(--line); }
.tools-facts div:first-child { border-top: 0; }
.tools-facts dt { color: var(--ink-soft); font-size: .9rem; }
.tools-facts dd { margin: 0; overflow-wrap: anywhere; }
.tools-more { margin-top: .75rem; }
.tools-more > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 700; color: var(--brand-deep); }
.tools-timeline { margin-top: 1rem; }
.tools-timeline li { padding: .6rem 0; border-top: 1px solid var(--line); }
.tools-timeline p { margin: 0; overflow-wrap: anywhere; }
.tools-timeline__meta { font-size: .84rem; color: var(--ink-soft); }
.tools-suggest { margin: 0 0 1rem; padding: 1rem 1.1rem; border: 2px solid var(--brand); border-radius: 16px; background: #f3f9ff; }
.tools-suggest__q { margin: 0 0 .75rem; font-weight: 800; color: var(--navy-800); }
@media (max-width: 640px) {
  .tools-form--inline { grid-template-columns: 1fr; }
  .tools-facts div { grid-template-columns: 1fr; gap: 0; }
  .tools-task { grid-template-columns: 44px 1fr; }
  .tools-task__snooze { grid-column: 2; }
  .tools-toolbar__end { margin-left: 0; width: 100%; justify-content: space-between; }
  .tools-nav { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .tools-nav button, .tools-nav__link { justify-content: center; }
}

/* ---------- SAQQA Tools, Stage 1C: the Buyer Registry (js/tools-registry.js) ---------- */
.reg-entry { margin: 0 0 .9rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.reg-entry--conflict { border-color: #e7b8b8; background: #fffafa; }
.reg-entry--draft { border-style: dashed; }
.reg-entry h4 { margin: 0 0 .35rem; font: 800 1.02rem var(--font-body); color: var(--navy-800); overflow-wrap: anywhere; }
.reg-entry h4 small { display: block; font-weight: 600; color: var(--ink-soft); font-size: .86rem; }
.reg-entry p { margin: 0 0 .5rem; }
.reg-badge { display: inline-block; padding: .15rem .65rem; border-radius: 999px; font-size: .8rem; font-weight: 800; }
.reg-badge--ok { background: #e8f5ee; color: #14532d; }
.reg-badge--warn { background: #fff6da; color: #5a4300; }
.reg-badge--bad { background: #fdecec; color: #8a1c1c; }
.reg-badge--off { background: var(--ice); color: var(--ink-soft); }
.reg-conflict { padding: .6rem .8rem; border-radius: 10px; background: #fff6da; color: #5a4300; font-size: .92rem; }
.reg-facts { margin: 0 0 .5rem; }
.reg-facts div { display: grid; grid-template-columns: 10rem 1fr; gap: .5rem; padding: .3rem 0; border-top: 1px solid var(--line); font-size: .92rem; }
.reg-facts dt { color: var(--ink-soft); }
.reg-facts dd { margin: 0; overflow-wrap: anywhere; }
.reg-upload input[type=file], .reg-form input[type=file] { padding: .55rem .7rem; min-height: 48px; }
.reg-form { margin: .75rem 0; padding: 1rem; border-radius: 14px; background: var(--ice); }
.reg-q { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
.reg-q legend { padding: 0; margin: 0 0 .4rem; font-weight: 800; color: var(--navy-800); }
.reg-form [data-reg-fields] { display: grid; gap: .75rem; }
.reg-history ul { margin: .25rem 0 0; padding-left: 1.1rem; font-size: .88rem; }
.reg-history span { color: var(--ink-soft); }
@media (max-width: 640px) { .reg-facts div { grid-template-columns: 1fr; gap: 0; } }

/* ---------- SAQQA Tools, Stage 1D: Property Collections. The agent's screens (js/tools-collections.js) ---------- */
.col-list { list-style: none; margin: 0 0 .75rem; padding: 0; }
.col-row { padding: .7rem 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.col-row:first-child { border-top: 0; }
.col-row__meta { display: block; margin-top: .15rem; font-size: .88rem; color: var(--ink-soft); }
.col-items { list-style: none; margin: 0; padding: 0; counter-reset: col; }
.col-item { counter-increment: col; padding: .9rem 0; border-top: 1px solid var(--line); }
.col-item:first-child { border-top: 0; }
.col-item__head { display: flex; gap: .8rem; align-items: flex-start; }
.col-item__photo { flex: 0 0 120px; height: 90px; border-radius: 10px; overflow: hidden; background: var(--ice); }
.col-item__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.col-item__what { min-width: 0; overflow-wrap: anywhere; }
.col-item__what h4 { margin: 0 0 .2rem; font: 800 1rem var(--font-body); color: var(--navy-800); }
.col-item__what h4::before { content: counter(col) ". "; color: var(--ink-soft); }
.col-item__what p { margin: 0 0 .2rem; font-size: .92rem; }
.col-item__office { color: var(--ink-soft); font-size: .82rem !important; }
.col-item__fb { margin: .6rem 0 0; }
.col-item__comments, .pc-comments { list-style: none; margin: .6rem 0 0; padding: .6rem .8rem; border-radius: 10px; background: var(--ice); font-size: .92rem; }
.col-item__comments li + li, .pc-comments li + li { margin-top: .35rem; }
.col-item__comments span, .pc-comments span { color: var(--ink-soft); font-size: .82rem; }
.col-note { margin-top: .7rem; }
.col-link input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; }
.col-results { list-style: none; margin: .75rem 0; padding: 0; }
.col-results li { display: flex; gap: .75rem; align-items: center; justify-content: space-between; padding: .55rem 0; border-top: 1px solid var(--line); }
.col-results__what { min-width: 0; overflow-wrap: anywhere; }
.col-results__what span { display: block; font-size: .86rem; color: var(--ink-soft); }
.col-results .btn { flex: 0 0 auto; min-height: 44px; }
.col-recent li a { overflow-wrap: anywhere; }
@media (max-width: 640px) { .col-item__photo { flex-basis: 88px; height: 66px; } }

/* ---------- SAQQA Property Collections: the client's page (js/collection.js) ---------- */
.pc [hidden] { display: none !important; }
.pc-head { max-width: 46rem; margin: 0 0 1.5rem; }
.pc-head h1 { margin: .2rem 0 .4rem; font-size: clamp(1.7rem, 4.5vw, 2.5rem); line-height: 1.15; overflow-wrap: anywhere; }
.pc-head__by { margin: 0 0 1rem; color: var(--ink-soft); font-weight: 600; }
.pc-intro { margin: 0 0 1.25rem; font-size: 1.08rem; line-height: 1.6; overflow-wrap: anywhere; }
.pc-agent { display: flex; gap: .9rem; align-items: center; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.pc-agent img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.pc-agent p { margin: 0; }
.pc-agent__name { font-weight: 800; color: var(--navy-800); }
.pc-agent__title { font-size: .88rem; color: var(--ink-soft); }
.pc-agent__contact { margin-top: .25rem !important; font-size: .95rem; overflow-wrap: anywhere; }
.pc-agent__contact a { display: inline-block; padding: .35rem 0; font-weight: 700; }
.pc-signin { margin: 0 0 1.25rem; padding: .9rem 1rem; border-radius: 14px; background: var(--ice); line-height: 1.5; }
.pc-signin .btn { margin: .5rem 0 0; display: inline-flex; }
.pc-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.pc-item { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: 1.25rem; padding: 1rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.pc-item--gone { display: block; background: var(--ice); color: var(--ink-soft); }
.pc-item--gone p { margin: 0; }
.pc-item__side { min-width: 0; display: grid; gap: .8rem; align-content: start; }
.pc-item__side .mt-actions { margin: 0; }
.pc-note { margin: 0; padding: .8rem 1rem; border-left: 4px solid var(--brand, #1f5fa8); border-radius: 0 12px 12px 0; background: var(--ice); }
.pc-note p { margin: 0 0 .3rem; line-height: 1.55; overflow-wrap: anywhere; }
.pc-note footer { font-size: .85rem; font-weight: 700; color: var(--ink-soft); }
.pc-note footer::before { content: "\2014\00a0"; }
.pc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.pc-btn { min-height: 52px; border-radius: 999px; border: 2px solid var(--line); background: #fff; font: 800 1rem var(--font-body); color: var(--navy-800); cursor: pointer; touch-action: manipulation; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.pc-btn:hover { border-color: var(--navy-800); }
.pc-btn:focus-visible { outline: 3px solid #1f5fa8; outline-offset: 2px; }
.pc-btn--like[aria-pressed="true"] { background: #14532d; border-color: #14532d; color: #fff; }
.pc-btn--pass[aria-pressed="true"] { background: #4b5563; border-color: #4b5563; color: #fff; }
.pc-btn[aria-pressed="true"]::before { content: "\2713\00a0"; }
.pc-btn:disabled { opacity: .6; cursor: default; }
.pc-sent { margin: 0; padding: .7rem .9rem; border-radius: 12px; background: #fff8e6; border: 1px solid #f0c75e; color: #4a3800; font-size: .92rem; }
.pc-showing { margin: .25rem 0 0; padding: 1rem; border-radius: 14px; background: var(--ice); display: grid; gap: .75rem; }
.pc-comment textarea { width: 100%; }
.pc-comment .mt-actions { margin-top: .5rem; }
.pc-legal { margin: 1.5rem 0 0; font-size: .82rem; color: var(--ink-soft); line-height: 1.5; }
@media (max-width: 760px) { .pc-item { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .pc-btn { transition: none; } }

/* ---------- SAQQA Tools: Property Search for agents (js/tools-search.js) ---------- */
.ps-form { display: grid; gap: .75rem; }
.ps-group { border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem .9rem; margin: 0; min-width: 0; display: grid; gap: .75rem; }
.ps-group legend { padding: 0 .3rem; font-weight: 700; font-size: .92rem; color: var(--navy-800); }
.ps-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.1rem; margin: .75rem 0; }
.ps-result { min-width: 0; }
.ps-result .mt-actions { margin: .5rem 0 0; }
.ps-result .btn { min-height: 44px; }

/* Investment Team groups: "Group targets met", a count beside the match percentage (never a score) */
.mt-targets { margin: .45rem 0 0; padding: .45rem .7rem; border-radius: 10px; background: var(--ice); color: var(--navy-800); font-size: .92rem; line-height: 1.4; }
.mt-targets strong { font-weight: 800; }
.mt-targets span { display: block; font-size: .8rem; color: var(--ink-soft); }
.mcard .mt-targets { margin: .4rem 0 .2rem; }

/* ---------- SAQQA Tools, Phase 2: the Training Hub (js/tools-training.js) and notifications (js/tools-notify.js) ---------- */
.trn-list, .trn-cats, .trn-perms, .trn-versions { list-style: none; margin: 0 0 .5rem; padding: 0; }
.trn-row { padding: .7rem 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.trn-row:first-child { border-top: 0; }
.trn-row a { display: inline-block; padding: .15rem 0; }
.trn-row__desc { margin: .2rem 0 0; font-size: .92rem; }
.trn-row__match { margin: .25rem 0 0; padding: .35rem .6rem; border-radius: 8px; background: #fff6da; color: #5a4300; font-size: .86rem; }
.trn-title { font-size: 1.3rem; overflow-wrap: anywhere; }
.trn-desc { font-size: 1.02rem; line-height: 1.55; overflow-wrap: anywhere; }
.trn-body { margin: .75rem 0; padding: 1rem 1.1rem; border-radius: 12px; background: var(--ice); line-height: 1.65; overflow-wrap: anywhere; max-width: 46rem; }
.trn-mode { margin: 0 0 .9rem; }
.trn-cats li, .trn-perms li, .trn-versions li { padding: .55rem 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.trn-cats li:first-child, .trn-perms li:first-child, .trn-versions li:first-child { border-top: 0; }
.trn-cats .link-button, .trn-versions a { display: inline-block; padding: .3rem .2rem; }
.trn-perms__ticks { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: .35rem; }
.tools-head { position: relative; }
.tools-notes { position: absolute; top: 0; right: 0; }
.tools-notes > .btn { min-height: 44px; }
.tools-notes__list { position: absolute; z-index: 30; top: calc(100% + .4rem); right: 0; width: min(22rem, calc(100vw - 2rem)); max-height: 26rem; overflow: auto; padding: .4rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 12px 32px rgba(8, 24, 48, .16); }
.tools-notes__list ul { list-style: none; margin: 0; padding: 0; }
.tools-notes__list .mt-actions { margin: .3rem .5rem .4rem; }
.note-item { display: block; width: 100%; min-height: 48px; padding: .6rem .7rem; border: 0; border-radius: 10px; background: none; text-align: left; font: inherit; color: var(--navy-800); cursor: pointer; overflow-wrap: anywhere; }
.note-item:hover, .note-item:focus-visible { background: var(--ice); }
.note-item.is-unread { background: #eef5fd; }
.note-item span { display: block; font-size: .86rem; color: var(--ink-soft); }
.note-item__at { font-size: .78rem !important; }
@media (max-width: 640px) { .tools-notes { position: static; margin-top: .6rem; } .tools-notes__list { left: 0; right: auto; } }

/* ---------- SAQQA Tools, Stage 2B: courses, lessons and quizzes (js/tools-courses.js) ---------- */
.crs-row { padding: .75rem 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.crs-row:first-child { border-top: 0; }
.crs-row a { display: inline-block; padding: .15rem 0; }
.crs-bar { height: 8px; margin: .45rem 0 .2rem; border-radius: 999px; background: var(--ice); overflow: hidden; max-width: 22rem; }
.crs-bar i { display: block; height: 100%; border-radius: 999px; background: #14532d; }
.crs-summary { margin: 0 0 .5rem; font-weight: 600; }
.crs-lessons { margin: .9rem 0 0; padding: 0; list-style: none; counter-reset: les; }
.crs-lessons li { counter-increment: les; padding: .65rem 0 .65rem 2.4rem; border-top: 1px solid var(--line); position: relative; overflow-wrap: anywhere; }
.crs-lessons li::before { content: counter(les); position: absolute; left: 0; top: .6rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--ice); color: var(--navy-800); font-weight: 800; font-size: .85rem; display: grid; place-items: center; }
.crs-lessons li.is-done::before { content: "\2713"; background: #14532d; color: #fff; }
.crs-lessons a { font-weight: 700; display: inline-block; padding: .2rem 0; }
.crs-lesson-tools { display: inline-flex; gap: .6rem; margin-left: .4rem; }
.crs-lesson-tools .link-button { padding: .3rem .1rem; }
.crs-nav { margin-top: 1.1rem; }
.crs-nav .btn { min-height: 48px; }
.crs-quiz { display: grid; gap: 1rem; }
.crs-q { border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; margin: 0; min-width: 0; display: grid; gap: .45rem; }
.crs-q legend { padding: 0 .3rem; font-weight: 700; color: var(--navy-800); }
.crs-q .match-check { min-height: 44px; align-items: center; }
.crs-result { margin: .75rem 0; padding: .9rem 1rem; border-radius: 12px; border: 1px solid var(--line); }
.crs-result.is-pass { background: #e8f5ee; border-color: #b7dcc5; }
.crs-result.is-fail { background: #fff6da; border-color: #f0c75e; }
.crs-result ol { margin: .5rem 0 0; padding-left: 1.2rem; }
.crs-result li + li { margin-top: .6rem; }
.crs-result p { margin: 0 0 .2rem; }
.crs-right { color: #14532d; font-weight: 700; }
.crs-wrong { color: #8a1c1c; font-weight: 700; }
.crs-qlist { margin: 0 0 1rem; padding-left: 1.2rem; }
.crs-qlist > li { padding: .5rem 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.crs-qlist ul { margin: .2rem 0; padding-left: 1.1rem; }
@media (prefers-reduced-motion: no-preference) { .crs-bar i { transition: width .3s ease; } }

/* ---------- SAQQA Tools, Stage 2C: Office Policies (js/tools-policies.js) ---------- */
.pol-cat { margin: 1.1rem 0 .2rem; font: 800 .95rem var(--font-body); color: var(--navy-800); }
.pol-body { max-width: 48rem; background: #fff; border: 1px solid var(--line); }
.pol-ack { margin: 1rem 0; padding: 1rem 1.1rem; border-radius: 14px; border: 2px solid #f0c75e; background: #fff8e6; }
.pol-ack.is-done { border-color: #b7dcc5; background: #e8f5ee; }
.pol-ack p { margin: 0 0 .5rem; overflow-wrap: anywhere; }
.pol-ack .btn { min-height: 52px; min-width: 10rem; }
.pol-ack .mt-actions { margin: .6rem 0; }

/* ---------- SAQQA Tools, Stage 2D: Training Reports and the search across training and policies (js/tools-reports.js) ---------- */
.rep-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: .7rem; margin: 0 0 1rem; }
.rep-stat { padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.rep-stat strong { display: block; font: 800 1.6rem var(--font-body); color: var(--navy-800); font-variant-numeric: tabular-nums; }
.rep-stat span { font-size: .84rem; color: var(--ink-soft); }
.rep-stat.is-bad { border-color: #e7b8b8; background: #fffafa; }
.rep-stat.is-bad strong { color: #8a1c1c; }
.rep-row { display: grid; grid-template-columns: minmax(9rem, 2fr) repeat(6, minmax(4.5rem, 1fr)); gap: .5rem; padding: .55rem 0; border-top: 1px solid var(--line); align-items: center; font-variant-numeric: tabular-nums; }
.rep-row--head { border-top: 0; font-size: .8rem; font-weight: 800; color: var(--ink-soft); }
.rep-name { font-weight: 700; overflow-wrap: anywhere; }
.rep-row .is-bad { color: #8a1c1c; font-weight: 800; }
.tools-find { display: flex; gap: .4rem; margin-top: .7rem; max-width: 30rem; }
.tools-find input { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: 999px; font: inherit; }
.tools-find .btn { min-height: 44px; flex: 0 0 auto; }
@media (max-width: 760px) {
  .rep-row--head { display: none; }
  .rep-row { grid-template-columns: 1fr 1fr; padding: .8rem 0; }
  .rep-name { grid-column: 1 / -1; }
  .rep-row span[data-label]::before { content: attr(data-label) ": "; color: var(--ink-soft); font-weight: 600; }
}

/* ---------- SAQQA Tools, Phase 3, Stage 3A: Marketing Studio (js/tools-marketing.js) ---------- */
.mk-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin: 0 0 1.25rem; }
.mk-tile { display: grid; gap: .3rem; padding: 0 0 1rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; color: var(--navy-800); text-decoration: none; overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.mk-tile:hover, .mk-tile:focus-visible { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.mk-tile:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.mk-tile strong { padding: .7rem 1rem 0; font-size: 1.05rem; }
.mk-tile > span:not(.mk-tile__art) { padding: 0 1rem; font-size: .9rem; color: var(--ink-soft); line-height: 1.45; }
.mk-tile__art { display: block; height: 96px; background: linear-gradient(135deg, var(--navy-900), var(--brand-deep)); position: relative; }
.mk-tile__art::after { content: ""; position: absolute; inset: 22px 28px; border-radius: 10px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35); }
.mk-tile__art--b { background: linear-gradient(135deg, var(--brand-deep), var(--brand)); }
.mk-tile__art--b::after { inset: 22px 28px 22px 55%; }
.mk-tile__art--c { background: linear-gradient(135deg, var(--navy-800), #0b6aa8); }
.mk-tile__art--c::after { inset: 30px 28px; border-radius: 4px; }
.mk-card { display: grid; grid-template-columns: auto 1fr; gap: .9rem 1rem; align-items: center; max-width: 30rem; padding: 1.1rem 1.2rem; border-radius: 16px; background: linear-gradient(135deg, var(--navy-900), var(--brand-deep)); color: #fff; margin: 0 0 .9rem; }
.mk-card__photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255, 255, 255, .85); background: #fff; }
.mk-card__photo--none { display: grid; place-items: center; font: 800 2.2rem var(--font-body); color: var(--navy-800); }
.mk-card p { margin: 0; overflow-wrap: anywhere; }
.mk-card__name { font: 800 1.25rem var(--font-body); }
.mk-card__title { font-size: .92rem; opacity: .9; }
.mk-card__line { font-size: .88rem; opacity: .92; margin-top: .25rem !important; }
.mk-card__brand { grid-column: 1 / -1; padding-top: .8rem; border-top: 1px solid rgba(255, 255, 255, .3); }
.mk-card__brokerage { font-weight: 800; letter-spacing: .02em; }
.mk-assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; margin: .5rem 0 1rem; }
.mk-asset { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.mk-asset__preview { height: 130px; background: var(--ice); display: grid; place-items: center; }
.mk-asset__preview img { max-width: 100%; max-height: 130px; object-fit: contain; }
.mk-asset__preview span { font: 800 2rem var(--font-body); color: var(--brand-deep); opacity: .5; }
.mk-asset__body { padding: .8rem .9rem; min-width: 0; }
.mk-asset__body h4 { margin: 0 0 .3rem; font: 800 1rem var(--font-body); color: var(--navy-800); overflow-wrap: anywhere; }
.mk-asset__body p { margin: 0 0 .45rem; }
.mk-text { padding: .6rem .75rem; border-radius: 10px; background: var(--ice); font-size: .92rem; line-height: 1.55; overflow-wrap: anywhere; max-height: 14rem; overflow: auto; }
.mk-manage { margin-top: .5rem; border-top: 1px solid var(--line); padding-top: .5rem; }
.mk-manage summary { cursor: pointer; font-weight: 700; color: var(--brand-deep); padding: .45rem 0; min-height: 44px; display: flex; align-items: center; }
.mk-colours { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .7rem; }
.mk-colours li { display: grid; gap: .15rem; font-size: .88rem; }
.mk-swatch { display: block; width: 4.5rem; height: 3rem; border-radius: 10px; border: 1px solid var(--line); }
.mk-request-photo { display: block; margin: .5rem 0; width: 140px; height: 140px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { .mk-tile { transition: none; } .mk-tile:hover, .mk-tile:focus-visible { transform: none; } }

/* ---------- SAQQA Tools, Stage 3B: marketing templates and the editor (js/tools-marketing-editor.js) ---------- */
.mk-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; margin: .5rem 0 1rem; }
.mk-tpl { border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; min-width: 0; box-shadow: var(--shadow-sm); }
.mk-tpl__thumb { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; background: var(--navy-800); }
.mk-tpl__body { padding: .8rem .9rem 1rem; }
.mk-tpl__body h4 { margin: 0 0 .3rem; font: 800 1rem var(--font-body); color: var(--navy-800); overflow-wrap: anywhere; }
.mk-tpl__body p { margin: 0 0 .45rem; }
.mk-tpl__body .btn { min-height: 44px; }
.pe { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: 1.5rem; align-items: start; }
.pe__preview { position: sticky; top: calc(var(--header-h) + 12px); min-width: 0; }
.pe__canvas { display: block; width: 100%; max-width: 30rem; height: auto; max-height: 70vh; object-fit: contain; border-radius: 12px; box-shadow: var(--shadow-md); background: var(--navy-800); }
.pe__side { min-width: 0; display: grid; gap: 1rem; }
.pe-step { border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem 1rem; margin: 0 0 .9rem; min-width: 0; display: grid; gap: .7rem; background: #fff; }
.pe-step legend { padding: 0 .35rem; font-weight: 800; color: var(--navy-800); }
.pe-step[disabled] { opacity: .75; }
.pe-photo { display: grid; gap: .5rem; }
.pe-photo img { width: 100%; max-width: 14rem; border-radius: 10px; border: 1px solid var(--line); }
.pe-label { margin: 0; font-weight: 700; font-size: .92rem; }
.pe-locked { margin: .9rem 0 0; padding: .75rem .9rem; border-radius: 12px; background: var(--ice); font-size: .88rem; max-width: 30rem; }
.pe-locked p { margin: 0 0 .3rem; }
.pe-locked ul { margin: 0; padding-left: 1.1rem; overflow-wrap: anywhere; }
.pe-review { padding: 1rem; border: 2px solid #f0c75e; border-radius: 14px; background: #fff8e6; }
.pe-history h4 { margin: 0 0 .3rem; }
@media (max-width: 900px) { .pe { grid-template-columns: 1fr; } .pe__preview { position: static; } .pe__canvas { max-height: 60vh; margin: 0 auto; } }
.mk-perm-doc { display: grid; gap: .4rem; margin-top: .5rem; max-width: 28rem; }
.mk-perm-doc .btn { justify-self: start; min-height: 44px; }

/* Marketing Studio, Stage 3D: email signature preview, wide previews, official content pages */
.pe-sig { padding: 1.25rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow-md); max-width: 34rem; overflow-x: auto; }
.pe__canvas--wide { max-width: 38rem; }
.mk-content { margin-top: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--ice); scroll-margin-top: calc(var(--header-h) + 12px); }
.mk-sec { display: grid; gap: .6rem; padding: .9rem 1rem; margin: 0 0 .8rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; min-width: 0; }
.mk-sec textarea { min-height: 8rem; }

/* Marketing Studio, Stage 3E: the template a notification points at */
.mk-tpl.is-wanted { outline: 3px solid var(--blue-500, #0594db); outline-offset: 3px; }

/* CRM: a contact's client types (several at once) */
.tools-chip--type { background: var(--navy-800); color: #fff; }
.tools-types { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: .55rem 0 0 !important; }
.tools-types__label { font-weight: 700; color: var(--navy-800); margin-right: .15rem; }
.tools-types-edit { margin-top: .5rem; }
.tools-types-edit summary { cursor: pointer; font-weight: 700; color: var(--blue-700, #05528f); min-height: 44px; display: inline-flex; align-items: center; }
.tools-types-edit .tools-form { margin-top: .5rem; max-width: 40rem; }
.tools-types-pick { border: 0; padding: 0; margin: 0; min-width: 0; }
.tools-types-pick legend { padding: 0; margin-bottom: .4rem; font-weight: 700; font-size: .92rem; }

/* CRM: agent recruitment (confidential) */
.tools-chip--recruit { background: #fff3d6; color: #6b4a00; text-decoration: none; }
a.tools-chip--recruit:hover { text-decoration: underline; }
.rc-stages { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .5rem; margin: 0 0 1rem; }
.rc-stage { display: grid; gap: .1rem; min-height: 64px; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: left; font: inherit; color: var(--ink-soft); cursor: pointer; }
.rc-stage strong { font-size: 1.25rem; color: var(--navy-800); line-height: 1.1; }
.rc-stage span { font-size: .82rem; line-height: 1.25; }
.rc-stage.is-on { border-color: var(--navy-800); box-shadow: inset 0 0 0 1px var(--navy-800); background: var(--ice); }

/* CRM: Client Property Activity (SAQQA Tools client profile, and the staff dashboard's Users) */
.act-connect { padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--ice); margin: 0 0 1rem; }
.act-connect p { margin: 0 0 .6rem; }
.act-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .5rem; margin: .25rem 0 .5rem; }
.act-count { display: grid; gap: .1rem; min-height: 64px; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: left; font: inherit; color: var(--ink-soft); cursor: pointer; }
.act-count strong { font-size: 1.3rem; line-height: 1.1; color: var(--navy-800); }
.act-count span { font-size: .84rem; line-height: 1.25; }
.act-count.is-on { border-color: var(--navy-800); box-shadow: inset 0 0 0 1px var(--navy-800); background: var(--ice); }
.act-homes { list-style: none; margin: 0 0 1rem; padding: 0; }
.act-home { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: .9rem; padding: .9rem 0; border-top: 1px solid var(--line); }
.act-home__photo { width: 120px; height: 90px; object-fit: cover; border-radius: 10px; background: var(--ice); display: block; }
.act-home__title { margin: 0 0 .15rem; font-weight: 800; color: var(--navy-800); overflow-wrap: anywhere; }
.act-home__main p { margin: 0 0 .35rem; }
.act-home__sources { display: flex; flex-wrap: wrap; gap: .3rem; }
.act-home__sources a { text-decoration: none; }
.act-add { margin-top: .4rem; }
@media (max-width: 560px) { .act-home { grid-template-columns: 1fr; } .act-home__photo { width: 100%; height: auto; aspect-ratio: 4 / 3; } .act-home__photo--none { display: none; } }
.user-detail { margin: 0 0 1.5rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; scroll-margin-top: calc(var(--header-h) + 12px); }
.user-detail h3 { margin: 0 0 .2rem; }
.user-detail h4 { margin: 1.1rem 0 .5rem; }
.user-feed { list-style: none; margin: 0 0 .8rem; padding: 0; }
.user-feed li { padding: .45rem 0; border-top: 1px solid var(--line); font-size: .92rem; overflow-wrap: anywhere; }

/* CRM: deleting a client or a recruitment record */
.tools-danger { border-color: #f1c7c7; }
.tools-danger h3 { color: #8a1c1c; }

/* Investment estimates: unverified condo fees (js/condo-fee.js). Always in the open, readable on a phone. */
.condo-note { margin: 1rem 0; padding: 1rem 1.1rem; border: 1px solid #e3c66a; border-left: 5px solid #b7791f; border-radius: 12px; background: #fff8e6; color: #3d2f00; font-size: .95rem; line-height: 1.55; }
.condo-note p { margin: 0 0 .6rem; }
.condo-note p:last-child { margin-bottom: 0; }
.condo-note__flag { font-weight: 800; letter-spacing: .01em; }
.lcard__flag { display: inline-block; margin: .25rem 0 0; padding: .12rem .55rem; border-radius: 999px; background: #fff3cd; color: #6b4e00; font-size: .78rem; font-weight: 800; }
.inv-points { margin: 1rem 0; padding: .9rem 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: .95rem; line-height: 1.55; }
.inv-points p { margin: 0 0 .4rem; }
.inv-points ul { margin: 0; padding-left: 1.2rem; }
.inv-points li { margin: .2rem 0; }
.cash-extra { margin-top: 1rem; }
.cash-sens { margin: 1rem 0; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.cash-sens h3 { margin: 0 0 .6rem; }
.cash-sens__pick { display: flex; flex-wrap: wrap; gap: .75rem 1rem; margin: 0 0 .75rem; }
.cash-sens__pick label { display: grid; gap: .25rem; flex: 1 1 14rem; min-width: 0; font-size: .9rem; font-weight: 700; }
.cash-sens__pick select, .cash-sens__pick input { width: 100%; min-height: 44px; padding: 0 .7rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.sens-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.sens-table th, .sens-table td { padding: .5rem .4rem; border-top: 1px solid var(--line); text-align: left; }
.sens-table th { border-top: 0; font-size: .82rem; color: var(--ink-soft); }
.sens-table td:last-child, .sens-table th:last-child { text-align: right; font-weight: 800; }
.sens-table .is-neg { color: #b42318; }
.sens-table .is-pos { color: #0b5d2a; }
.inv-sens { grid-column: 1 / -1; }

/* A pipeline board (My Clients, Agent Recruitment): scrolls sideways inside its own frame, never the page.
   Working arrows and a "which stages are in view" line above it, a scrollbar that is always visible, soft edges
   where more stages continue, and columns that keep a readable width on every screen. */
.pipe { min-width: 0; max-width: 100%; }
.pipe__nav { display: flex; align-items: center; gap: .6rem; margin: 0 0 .5rem; }
.pipe__where { flex: 1 1 auto; min-width: 0; margin: 0; font-size: .88rem; font-weight: 700; color: var(--ink-soft); text-align: center; }
.pipe__arrow { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 1.5px solid var(--navy-800); border-radius: 999px; background: #fff; color: var(--navy-800); font: 800 1.15rem/1 var(--font-body); cursor: pointer; transition: background .15s, color .15s, opacity .15s; }
.pipe__arrow:hover:not(:disabled) { background: var(--navy-800); color: #fff; }
.pipe__arrow:focus-visible { outline: 3px solid var(--brand-sky, #0594db); outline-offset: 2px; }
.pipe__arrow:disabled { opacity: .3; cursor: default; border-color: var(--line); }
.pipe__nav.is-fits .pipe__arrow { visibility: hidden; }
.pipe__frame { position: relative; min-width: 0; }
.pipe__frame::before, .pipe__frame::after { content: ""; position: absolute; top: 0; bottom: 14px; width: 28px; pointer-events: none; opacity: 0; transition: opacity .2s; z-index: 1; }
.pipe__frame::before { left: 0; background: linear-gradient(to right, rgba(4, 38, 74, .16), rgba(4, 38, 74, 0)); border-radius: 14px 0 0 14px; }
.pipe__frame::after { right: 0; background: linear-gradient(to left, rgba(4, 38, 74, .16), rgba(4, 38, 74, 0)); border-radius: 0 14px 14px 0; }
.pipe__frame.has-left::before, .pipe__frame.has-right::after { opacity: 1; }
.pipe .tools-board { align-items: flex-start; max-width: 100%; padding: .25rem .1rem .6rem; overscroll-behavior-x: contain; scroll-padding-left: .1rem; touch-action: pan-x pan-y; }
.pipe .tools-board:focus-visible { outline: 3px solid var(--brand-sky, #0594db); outline-offset: 2px; border-radius: 14px; }
.pipe .tools-board::-webkit-scrollbar { height: 12px; }
.pipe .tools-board::-webkit-scrollbar-track { background: var(--ice); border-radius: 999px; }
.pipe .tools-board::-webkit-scrollbar-thumb { background: #9fb3c6; border-radius: 999px; border: 2px solid var(--ice); }
.pipe .tools-board::-webkit-scrollbar-thumb:hover { background: var(--navy-800); }
@supports not selector(::-webkit-scrollbar) { .pipe .tools-board { scrollbar-color: #9fb3c6 var(--ice); } }
.pipe .tools-col { flex: 0 0 clamp(220px, 78vw, 264px); min-width: 0; }
.pipe .tools-col h3 { align-items: flex-start; line-height: 1.25; }
.pipe .tools-col h3 .badge { flex: none; }
.pipe .tools-kard { min-width: 0; }
.pipe .tools-kard a, .pipe .tools-kard span { overflow-wrap: anywhere; }
.pipe .tools-kard select { width: 100%; min-height: 44px; }
.tools-col__none { margin: 0; padding: .5rem .2rem; font-size: .84rem; color: var(--ink-soft); }
.rc-mode { margin: 0 0 .75rem; }
@media (prefers-reduced-motion: reduce) { .pipe__arrow, .pipe__frame::before, .pipe__frame::after { transition: none; } }
