/* VIP Property — site styles. Mobile first; desktop from 960px. */
:root {
  --ink: #0B1F29;
  --ink-2: #13303A;
  --brass: #A8875A;
  --brass-text: #7A5F3A;
  --brass-light: #D9C29A;
  --logo: #BE915A;
  --teal: #0F6B68;
  --teal-dark: #0B5552;
  --teal-soft: #7FB3AF;
  --porcelain: #F4F6F5;
  --paper: #FFFFFF;
  --muted: #55646B;
  --muted-2: #4A5A60;
  --on-dark: #C9D4D2;
  --on-dark-2: #9FB0AE;
  --line: #E3E8E7;
  --line-2: #CFD8D6;
  --chip: #7D8A8E;
  --danger: #A33A2B;
  --display: 'Bodoni Moda', Didot, 'Times New Roman', serif;
  --text: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 16px;
  --wrap: 1280px;
  --radius: 2px;
  --bar-h: 68px;
}
html[lang="ar"] { --display: 'Noto Naskh Arabic', serif; --text: 'IBM Plex Sans Arabic', system-ui, sans-serif; }
html[lang="fa"] { --display: 'Vazirmatn', 'Noto Naskh Arabic', serif; --text: 'Vazirmatn', 'IBM Plex Sans Arabic', system-ui, sans-serif; }
html[lang="ru"] { --display: 'Playfair Display', Georgia, serif; }
html[lang="zh"] { --display: 'Noto Serif SC', 'Songti SC', serif; --text: 'IBM Plex Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.6 var(--text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 8px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 100; }
/* hidden by clipping, not by pushing off-screen: a negative left makes RTL (ar/fa) pages scroll sideways */
.skip:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.num, .price { font-variant-numeric: tabular-nums lining-nums; }
[dir="rtl"] .flip { transform: scaleX(-1); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.serif { font-family: var(--display); font-weight: 500; letter-spacing: -0.005em; }
h1, h2, h3 { margin: 0; line-height: 1.12; }
h1.serif { font-size: clamp(38px, 9vw, 88px); line-height: 1.02; }
h2.serif { font-size: clamp(28px, 5.4vw, 48px); line-height: 1.06; }
h3.serif { font-size: clamp(21px, 3vw, 26px); }
p { margin: 0 0 1em; }
.lead { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 62ch; }
.on-dark .lead, .dark .lead, .hero .lead, .list-head .lead, .p-hero .lead { color: var(--on-dark); }
[hidden] { display: none !important; }
.kick { margin: 0 0 14px; display: flex; align-items: center; gap: 12px; color: var(--brass-text); font-size: 14px; }
.kick::before { content: ""; width: 32px; height: 1px; background: var(--brass); flex: none; }
.dark .kick { color: var(--brass-light); }
.sec { padding-block: 56px; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; margin-bottom: 28px; }
.dark { background: var(--ink); color: #fff; }
.tint { background: var(--porcelain); }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- Buttons and chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border: 1px solid transparent; border-radius: var(--radius);
  font: 500 15px/1.1 var(--text); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-line { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--porcelain); color: var(--ink); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-dash { background: transparent; border: 1px dashed var(--brass); color: var(--brass-text); }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.chip {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--chip); background: var(--paper); color: var(--ink); border-radius: var(--radius);
  font: 400 14px/1.2 var(--text); cursor: pointer; text-decoration: none; text-align: center;
}
.chip[aria-pressed="true"], .chip.on, .chip:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip { position: relative; }
.desk .chip, .dark .chip { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.desk .chip.on, .dark .chip.on, .dark .chip[aria-pressed="true"] { background: #fff; color: var(--ink); border-color: #fff; }
.badge { display: inline-block; padding: 5px 9px; font-size: 12px; line-height: 1.2; background: var(--brass); color: var(--ink); }
.badge-line { background: rgba(11,31,41,.6); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.badge-soft { background: #E7F1EF; color: var(--teal); }
.badge-warn { background: #F6EBDD; color: #7A4B12; }

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: 40; background: var(--ink); color: #fff; border-bottom: 1px solid rgba(255,255,255,.12); }
.hdr .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; flex: none; }
.logo svg { width: 34px; height: auto; }
.logo .w { display: inline-flex; flex-direction: column; line-height: 1; }
.logo:hover, .logo:focus-visible { color: #fff; }
.logo .w1 { font: 500 18px/1 'Bodoni Moda', Didot, serif; letter-spacing: .1em; margin-inline-end: -.1em; white-space: nowrap; }
.logo .w2 { display: flex; justify-content: space-between; font: 400 8px/1 'IBM Plex Sans', sans-serif; color: var(--logo); margin-top: 5px; white-space: nowrap; }
.logo .w2 i { font-style: normal; }
.nav { display: none; gap: 28px; flex: 1; }
.nav a { color: #E7ECEB; text-decoration: none; font-size: 15px; padding-block: 6px; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"] { border-bottom: 1px solid var(--brass); }
.hdr-tools { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.hdr-sel { position: relative; }
.hdr-sel > button { min-height: 44px; padding: 0 10px; background: transparent; border: 0; color: var(--on-dark); font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.hdr-sel > button:hover { color: #fff; }
.hdr-menu { position: absolute; inset-inline-end: 0; top: 100%; min-width: 180px; background: #fff; color: var(--ink); box-shadow: 0 18px 40px rgba(11,31,41,.18); padding: 6px; display: none; z-index: 60; }
.hdr-sel.open .hdr-menu { display: block; }
.hdr-menu a, .hdr-menu button { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 10px 12px; color: var(--ink); text-decoration: none; background: none; border: 0; text-align: start; cursor: pointer; font-size: 15px; }
.hdr-menu a:hover, .hdr-menu button:hover, .hdr-menu [aria-current="true"] { background: var(--porcelain); }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; cursor: pointer; position: relative; text-decoration: none; }
.icon-btn .count { position: absolute; top: -6px; inset-inline-end: -6px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--brass); color: var(--ink); font-size: 11px; display: none; align-items: center; justify-content: center; padding: 0 5px; }
.icon-btn .count.on { display: inline-flex; }
.hdr-cta { display: none; }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 80; display: none; }
.drawer.open { display: block; }
.drawer-bg { position: absolute; inset: 0; background: rgba(11,31,41,.55); }
.drawer-panel { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(88vw, 380px); background: var(--ink); color: #fff; padding: 18px 20px 32px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.drawer-panel a.dl { color: #fff; text-decoration: none; font: 500 24px/1.2 var(--display); padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.drawer-close { align-self: flex-end; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero-in { position: relative; z-index: 2; padding-block: 44px 108px; }
.hero h1 { max-width: 14ch; }
.hero .lead { margin-top: 18px; }
.hero-sky { position: absolute; inset-inline: 0; bottom: 0; width: 100%; height: auto; z-index: 1; opacity: .9; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; font-size: 13px; color: var(--on-dark); }
.hero-meta strong { color: #fff; font-weight: 500; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #5FBF8F; margin-inline-end: 6px; vertical-align: middle; }
.dot.off { background: var(--brass); }
.seg { display: inline-flex; border: 1px solid rgba(255,255,255,.35); margin-top: 26px; }
.seg button { min-height: 44px; padding: 0 18px; border: 0; background: transparent; color: var(--on-dark); cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); }

/* ---------- Finder card ---------- */
.finder { position: relative; z-index: 5; margin-top: -64px; background: #fff; border-top: 1px solid var(--brass); box-shadow: 0 24px 60px rgba(11,31,41,.14); padding: 22px 18px; }
.finder h2 { font-size: 24px; margin-bottom: 14px; }
.finder-q { display: flex; border: 1px solid var(--chip); margin-bottom: 18px; }
.finder-q input { flex: 1; min-width: 0; border: 0; padding: 0 14px; min-height: 50px; background: transparent; }
.finder-q button { border: 0; background: var(--ink); color: #fff; width: 50px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.flabel { font-size: 13px; color: var(--muted); margin: 14px 0 8px; display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.chips-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.finder .btn-primary { margin-top: 20px; width: 100%; min-height: 52px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* ---------- Project cards ---------- */
.rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 4px var(--gutter) 12px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: none; width: min(80vw, 320px); scroll-snap-align: start; }
.grid-cards { display: grid; gap: 28px 24px; grid-template-columns: 1fr; }
.card { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; position: relative; }
.card-img { position: relative; aspect-ratio: 4 / 3; background: var(--ink); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.03); }
.card-img .badges { position: absolute; top: 12px; inset-inline-start: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.card-body { padding-top: 14px; }
.card .where { font-size: 13px; color: var(--brass-text); margin: 0; }
.card h3 { font: 500 24px/1.15 var(--display); margin: 4px 0 6px; }
.card .meta { font-size: 14px; color: var(--muted); margin: 0; }
.card .price { font-size: 16px; font-weight: 500; margin: 8px 0 0; }
.card-actions { display: flex; gap: 8px; margin-top: 12px; }
.card-actions .btn { flex: 1; min-height: 44px; font-size: 14px; padding: 0 10px; }
.fav { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 3; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.fav[aria-pressed="true"] svg { fill: var(--danger); stroke: var(--danger); }
.cmp-toggle { font-size: 13px; color: var(--muted); background: none; border: 0; padding: 8px 0; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.cmp-toggle[aria-pressed="true"] { color: var(--teal); font-weight: 500; }
.ph { width: 100%; height: 100%; }
.stale { font-size: 12px; color: #7A4B12; margin-top: 6px; }

/* ---------- Trust strip ---------- */
.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
.trust > div { border-top: 1px solid var(--chip); padding-top: 12px; }
.trust .v { font: 500 30px/1.1 var(--display); margin: 0; }
.trust .l { font-size: 13px; color: var(--muted-2); margin: 4px 0 0; }

/* ---------- Two routes / compare table ---------- */
.cmp-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cmp-table th, .cmp-table td { padding: 14px 10px 14px 0; border-top: 1px solid var(--line); text-align: start; vertical-align: top; }
.cmp-table thead th { font-weight: 500; border-top: 1px solid var(--ink); }
.cmp-table tbody th { font-weight: 400; color: var(--muted); width: 32%; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 2px 10px; border-top: 1px solid var(--brass); padding: 16px 0; }
.steps li:last-child { border-bottom: 1px solid var(--brass); }
.steps .n { font: 500 24px/1 var(--display); color: var(--brass-text); }
.steps strong { font-weight: 500; display: block; }
.steps span.d { color: var(--muted); font-size: 15px; }

/* ---------- Desk block ---------- */
.desk { background: var(--ink); color: #fff; padding: 24px 20px; display: flex; flex-direction: column; gap: 14px; }
.desk h2, .desk h3 { font: 500 26px/1.15 var(--display); }
.desk .st { font-size: 13px; color: var(--brass-light); margin: 0; }
.desk .note { font-size: 12px; color: var(--on-dark-2); margin: 0; }
.desk .langs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

/* ---------- Reviews ---------- */
.review { border: 1px solid var(--line); padding: 18px; display: flex; flex-direction: column; gap: 10px; background: #fff; }
.review blockquote { margin: 0; font-size: 16px; line-height: 1.55; }
.review figcaption { font-size: 13px; color: var(--muted); margin-top: auto; }
.stars { color: var(--brass); letter-spacing: 2px; font-size: 14px; }

/* ---------- Listing ---------- */
.list-head { background: var(--ink); color: #fff; padding-block: 28px 30px; }
.list-head h1 { font-size: clamp(32px, 6vw, 56px); }
.crumbs { font-size: 13px; color: var(--on-dark-2); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--on-dark); }
.crumbs.light { color: var(--muted); }
.crumbs.light a { color: var(--muted); }
.toolbar { position: sticky; top: 64px; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.toolbar .wrap { display: flex; gap: 8px; align-items: center; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.toolbar .wrap::-webkit-scrollbar { display: none; }
.toolbar .chip { flex: none; min-height: 40px; font-size: 14px; }
.toolbar .count { margin-inline-start: auto; font-size: 14px; color: var(--muted); white-space: nowrap; padding-inline-start: 10px; }
.results { padding-block: 24px 64px; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); text-decoration: none; color: var(--ink); padding: 0 12px; }
.pager [aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { padding: 48px 0; text-align: center; color: var(--muted); }
.areas { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.areas a { color: #fff; border: 1px solid rgba(255,255,255,.3); padding: 8px 12px; text-decoration: none; font-size: 14px; }
.areas a:hover { background: #fff; color: var(--ink); }

/* Filter sheet */
.sheet { position: fixed; inset: 0; z-index: 90; display: none; }
.sheet.open { display: block; }
.sheet-bg { position: absolute; inset: 0; background: rgba(11,31,41,.5); }
.sheet-panel { position: absolute; inset-inline: 0; bottom: 0; max-height: 88vh; overflow-y: auto; background: #fff; padding: 18px var(--gutter) 0; border-radius: 12px 12px 0 0; }
.sheet-panel h2 { font: 500 24px/1.2 var(--display); }
.sheet-foot { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 10px; margin-top: 24px; }
.field { display: block; margin-top: 16px; }
.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.input, .select, textarea.input {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--chip); border-radius: var(--radius); background: #fff;
}
textarea.input { min-height: 110px; resize: vertical; }
.input:focus, .select:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(168,135,90,.25); }
.input-line { border: 0; border-bottom: 1px solid var(--chip); border-radius: 0; padding-inline: 0; background: transparent; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- Project page ---------- */
.p-hero { position: relative; background: var(--ink); color: #fff; }
.p-hero .media { position: relative; aspect-ratio: 4 / 5; max-height: 72vh; width: 100%; overflow: hidden; }
.p-hero .media img, .p-hero .media svg { width: 100%; height: 100%; object-fit: cover; }
.p-hero .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,31,41,.05) 35%, rgba(11,31,41,.92) 100%); }
.p-hero .cap { position: absolute; inset-inline: var(--gutter); bottom: 22px; z-index: 2; }
.p-hero h1 { font-size: clamp(38px, 8vw, 84px); }
.p-hero .badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.p-hero .counter { position: absolute; top: 14px; inset-inline-end: 16px; z-index: 2; font-size: 12px; color: var(--on-dark); background: rgba(11,31,41,.6); padding: 4px 8px; }
.thumbs { display: flex; gap: 6px; overflow-x: auto; padding: 8px var(--gutter) 0; scrollbar-width: none; background: #fff; }
.thumbs::-webkit-scrollbar { display: none; }
.thumbs button { flex: none; width: 72px; height: 56px; padding: 0; border: 2px solid transparent; background: var(--ink); cursor: pointer; overflow: hidden; }
.thumbs button[aria-current="true"] { border-color: var(--brass); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.p-grid { display: grid; gap: 40px; padding-block: 28px 64px; }
.keyfacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.keyfacts dt { font-size: 12px; color: var(--muted); }
.keyfacts dd { margin: 2px 0 0; font-size: 16px; font-weight: 500; }
.pricebox .from { font-size: 13px; color: var(--muted); margin: 0; }
.pricebox .big { font: 500 38px/1.1 var(--display); margin: 2px 0 6px; }
.cur-switch { display: inline-flex; border: 1px solid var(--line-2); }
.cur-switch button { min-height: 36px; padding: 0 12px; border: 0; background: #fff; cursor: pointer; font-size: 13px; }
.cur-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.verify { display: grid; grid-template-columns: 64px 1fr; gap: 14px; border: 1px solid var(--line); padding: 16px; font-size: 14px; }
.qr { width: 64px; height: 64px; border: 1px solid var(--ink); display: flex; align-items: center; justify-content: center; font-size: 11px; }
.progress { height: 6px; background: var(--line); margin: 10px 0 6px; }
.progress > i { display: block; height: 100%; background: var(--teal); }
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; font-size: 12px; color: var(--muted); }
.timeline div { border-top: 2px solid var(--line); padding-top: 6px; }
.timeline div.done { border-color: var(--teal); color: var(--ink); }
.docs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.docs .btn { min-height: 44px; font-size: 13px; padding: 0 8px; white-space: normal; text-align: center; }
.units { width: 100%; border-collapse: collapse; font-size: 15px; }
.units th, .units td { padding: 12px 8px 12px 0; border-top: 1px solid var(--line); text-align: start; }
.units th { font-weight: 400; color: var(--muted); font-size: 13px; }
.units td.price { font-weight: 500; }
.payplan { display: flex; height: 10px; margin: 16px 0 6px; }
.payplan i:nth-child(1) { background: var(--ink); }
.payplan i:nth-child(2) { background: var(--teal); }
.payplan i:nth-child(3) { background: var(--teal-soft); }
.payplan i:nth-child(4) { background: var(--brass); }
.payrows { margin: 0; }
.payrows div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.payrows dt { color: var(--muted-2); }
.payrows dd { margin: 0; font: 500 20px/1.2 var(--display); }
.yield { background: var(--porcelain); padding: 18px; display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; }
.yield .v { font: 500 34px/1 var(--display); color: var(--teal); margin: 4px 0; }
.prose { font-size: 17px; line-height: 1.7; }
.prose h2 { font: 500 28px/1.2 var(--display); margin: 1.4em 0 .5em; }
.prose h3 { font: 600 19px/1.3 var(--text); margin: 1.4em 0 .4em; }
.prose ul { padding-inline-start: 1.2em; }
.prose li { margin: .3em 0; }
.prose img { margin: 1em 0; }
.prose blockquote { border-inline-start: 2px solid var(--brass); margin: 1em 0; padding-inline-start: 16px; color: var(--muted-2); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose td, .prose th { border-top: 1px solid var(--line); padding: 8px 6px; text-align: start; }
.clamp { max-height: 340px; overflow: hidden; position: relative; }
.clamp::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 90px; background: linear-gradient(rgba(255,255,255,0), #fff); }
.clamp.open { max-height: none; }
.clamp.open::after { display: none; }
.highlights { display: grid; gap: 18px; }
.highlights h3 { font: 600 17px/1.35 var(--text); margin: 0 0 4px; }
.highlights p { color: var(--muted-2); margin: 0; font-size: 15px; }
.amen { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.amen li { border: 1px solid var(--line-2); padding: 8px 12px; font-size: 14px; }
.faq details { border-top: 1px solid var(--line-2); }
.faq details:last-child { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 32px 18px 0; position: relative; font-size: 17px; }
[dir="rtl"] .faq summary { padding: 18px 0 18px 32px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 4px; top: 14px; font-size: 24px; color: var(--brass-text); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted-2); margin: 0 0 18px; }
.mt-machine { font-size: 13px; color: var(--muted); background: var(--porcelain); padding: 10px 12px; margin-bottom: 18px; }

/* ---------- Sticky mobile action bar ---------- */
.bbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 50; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(11,31,41,.08); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 10px; }
.bbar .btn { flex: 1; min-height: 48px; font-size: 15px; padding: 0 10px; }
.bbar .btn-primary { flex: 1.35; }
body.has-bbar { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); }
.cmp-pill { position: fixed; z-index: 55; inset-inline-end: 16px; bottom: calc(var(--bar-h) + 16px + env(safe-area-inset-bottom)); background: var(--ink); color: #fff; border-radius: 26px; padding: 0 18px; min-height: 48px; display: none; align-items: center; gap: 8px; text-decoration: none; box-shadow: 0 10px 30px rgba(11,31,41,.3); }
.cmp-pill.on { display: inline-flex; }

/* ---------- Forms (lead) ---------- */
.lead-card { border-top: 1px solid var(--brass); padding-top: 20px; }
.ok-box { background: #E7F1EF; color: var(--teal-dark); padding: 16px; }
.err-box { background: #FBEDEA; color: var(--danger); padding: 12px 14px; font-size: 14px; display: none; }
.err-box.on { display: block; }
.consent { font-size: 12px; color: var(--muted); }
.steps-bar { display: flex; gap: 6px; margin: 14px 0 0; }
.steps-bar i { flex: 1; height: 2px; background: rgba(255,255,255,.25); }
.steps-bar i.on { background: var(--brass); }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); }
.post-card .ci { aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.post-card .ci img { width: 100%; height: 100%; object-fit: contain; } /* covers carry text: show the whole image */
.post-card h3 { font: 500 22px/1.2 var(--display); }
.post-card p { color: var(--muted); font-size: 15px; margin: 0; }
.article { max-width: 760px; margin: 0 auto; }

/* ---------- Footer ---------- */
.ftr { background: var(--ink); color: var(--on-dark-2); padding-block: 48px 28px; font-size: 14px; }
.ftr a { color: var(--on-dark-2); text-decoration: none; }
.ftr a:hover { color: #fff; }
.ftr-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.ftr-grid .brand { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; }
.ftr h4 { color: #fff; font-weight: 500; font-size: 15px; margin: 0 0 10px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ftr-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid #1F3A46; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }

.two { display: grid; gap: 32px; }

/* ---------- Desktop ---------- */
@media (min-width: 700px) {
  :root { --gutter: 32px; }
  .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .chips-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ftr-grid { grid-template-columns: 2fr repeat(3, 1fr); }
  .ftr-grid .brand { grid-column: auto; }
  .highlights { grid-template-columns: repeat(3, 1fr); }
  .p-hero .media { aspect-ratio: 16 / 8; }
}
@media (min-width: 960px) {
  :root { --gutter: 48px; --bar-h: 0px; }
  .sec { padding-block: 96px; }
  .hdr .wrap { min-height: 76px; }
  .nav { display: flex; }
  .hdr-cta { display: inline-flex; }
  .menu-btn { display: none; }
  .bbar { display: none; }
  body.has-bbar { padding-bottom: 0; }
  .cmp-pill { bottom: 24px; }
  .hero-in { padding-block: 96px 170px; }
  .finder { margin-top: -96px; padding: 32px; display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 24px; align-items: end; }
  .finder > h2, .finder > .finder-q { grid-column: 1 / -1; }
  .finder .btn-primary { margin-top: 0; width: auto; }
  .grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; gap: 28px 24px; }
  .rail > * { width: auto; }
  .p-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; }
  .p-aside { position: sticky; top: 100px; align-self: start; }
  .toolbar { top: 76px; }
  .sheet-panel { inset-inline: auto 0; inset-block: 0; width: 440px; max-height: none; border-radius: 0; }
  .two { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; }
}
@media (min-width: 1200px) {
  .grid-cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 959px) {
  .desk-only { display: none !important; }
  .p-aside { order: 2; }
}
@media (min-width: 960px) {
  .mob-only { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .hdr, .bbar, .ftr, .cmp-pill, .p-aside .desk { display: none !important; }
}

.hdr-menu-h { margin: 8px 12px 4px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.unit-flip { margin-left: 6px; padding: 2px 8px; border: 1px solid var(--line-2); background: #fff; font-size: 12px; cursor: pointer; vertical-align: middle; }
.unit-flip:hover { border-color: var(--ink); }

/* Destinations menu (country → city) */
.nav-dd { display: flex; align-items: center; }
.nav-dd > button { min-height: 0; padding: 6px 0; font-size: 15px; color: #E7ECEB; }
.dest-menu { inset-inline-end: auto; inset-inline-start: -16px; width: min(760px, 92vw); padding: 16px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px 16px; max-height: 75vh; overflow-y: auto; }
.nav-dd.open .dest-menu { display: grid; }
.dest-menu .dest-col { display: flex; flex-direction: column; }
.dest-menu a { padding: 5px 10px; font-size: 14px; }
.dest-menu a.dest-h { font-weight: 600; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--brass-text); border-bottom: 1px solid var(--line); margin-bottom: 4px; padding-bottom: 7px; }
.dest-menu .n { color: var(--muted); font-size: 12px; font-weight: 400; }
.drawer-dest summary { list-style: none; cursor: pointer; color: #fff; font: 500 24px/1.2 var(--display); padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.drawer-dest summary::-webkit-details-marker { display: none; }
.drawer-dest summary::after { content: " ▾"; font-size: 16px; opacity: .6; }
.drawer-dest[open] { padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.1); }
.drawer-dest-h { margin: 14px 0 6px; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; }
.drawer-dest-h a { color: var(--on-dark-2); text-decoration: none; }
.drawer-dest .chip { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); text-decoration: none; }

/* keep the main nav on one line in longer languages */
.nav a, .nav-dd > button { white-space: nowrap; }
@media (max-width: 1320px) { .nav { gap: 18px; } .nav a, .nav-dd > button { font-size: 14px; } }

/* home finder: goal and budget chips 2 × 2 so long labels ("Residency or citizenship") fit */
@media (min-width: 960px) {
  .finder { grid-template-columns: .9fr 1.35fr 1.15fr auto; }
  .finder .chips-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finder { align-items: start; }
  .finder .btn-primary { align-self: end; }
}
.finder .chip { padding: 6px 8px; }
.hdr-sel > button { white-space: nowrap; }
/* phones: logo + language + saved + menu must fit in 360–375px without sideways scroll */
@media (max-width: 480px) {
  .hdr .wrap { gap: 12px; }
  .logo { gap: 7px; }
  .logo svg { width: 28px; }
  .logo .w1 { font-size: 15px; }
  .logo .w2 { font-size: 7px; margin-top: 4px; }
  .hdr-tools { gap: 4px; }
  .hdr-tools .icon-btn { width: 40px; height: 40px; }
  .hdr-sel > button { padding: 0 6px; }
}

/* one list (Settings: ui.compare_mode = single): heart only, no separate compare buttons */
.cmp-single [data-cmp], .cmp-single [data-cmp-pill] { display: none !important; }
.saved-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.saved-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px 16px; align-items: center; padding: 12px; border: 1px solid var(--line); background: #fff; }
.saved-item.on { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.si-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink); }
.si-img img { width: 100%; height: 100%; object-fit: cover; }
.si-t { color: var(--ink); text-decoration: none; font: 500 18px/1.2 var(--display); }
.si-act { grid-column: 1 / -1; display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.si-pick { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; cursor: pointer; min-height: 44px; }
.si-rm { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 13px; min-height: 44px; }
@media (min-width: 700px) {
  .saved-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .saved-item { grid-template-columns: 120px minmax(0, 1fr) auto; }
  .si-act { grid-column: auto; flex-direction: column; align-items: flex-end; gap: 0; }
}

/* cookie consent */
.ck[hidden] { display: none !important; }
.ck { position: fixed; z-index: 60; inset-inline: 12px; bottom: calc(var(--bar-h) + 12px + env(safe-area-inset-bottom)); max-width: 560px; margin-inline: auto; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 40px rgba(11,31,41,.22); padding: 16px 18px; font-size: 14px; line-height: 1.5; }
.ck p { margin: 0 0 12px; }
.ck a { color: inherit; text-decoration: underline; }
.ck-b { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.ck-b .btn { min-height: 44px; padding-inline: 18px; }
@media (min-width: 960px) { .ck { inset-inline: auto 24px; bottom: 24px; } }

/* home Insights: 6 posts swipe on phones, desktop grid keeps the latest 3 */
@media (min-width: 960px) { .ins-rail > :nth-child(n+4) { display: none; } }

/* payrows: phones — wrapped values stay right-aligned and level with their label */
@media (max-width: 699px) { .payrows div { align-items: baseline; } .payrows dt { flex: 1 1 45%; } .payrows dd { flex: 0 1 55%; text-align: end; } }

/* compare table header: columns sized by count, photos aligned at top */
.cmp-table { min-width: calc(140px + var(--n, 2) * 170px); table-layout: fixed; }
.cmp-table .cmp-lab { width: 140px; }
.cmp-table thead .cmp-col { vertical-align: top; }
.cmp-name { display: block; color: var(--ink); text-decoration: none; font: 500 20px/1.2 var(--display); overflow-wrap: anywhere; }
@media (max-width: 699px) {
  .cmp-table { min-width: calc(84px + var(--n, 2) * 126px); font-size: 14px; }
  .cmp-table .cmp-lab, .cmp-table tbody th { width: 84px; }
  .cmp-table th, .cmp-table td { padding-inline-end: 8px; overflow-wrap: anywhere; }
  .cmp-name { font-size: 16px; }
}
/* mobile drawer: currency and area chips show the active choice */
.chip.chip-dk { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.chip.chip-dk.on { background: #fff; color: var(--ink); border-color: #fff; font-weight: 600; }