/* ============================================================================
   KW RED (Keller Williams RED) — "Signal" design system
   Palette: red · black · gray · white. One primitive ramp per hue, a semantic
   layer on top, and legacy aliases last so older published themes and the
   generated SEO pages keep resolving. Every colour a component uses must come
   from the semantic layer — that is what makes light/dark/system a token swap
   instead of a per-component rewrite.
   ============================================================================ */
:root {
  /* KW foundations (spec 4.1). The logo artwork red lives only inside the logo SVGs. */
  --kw-red: #B40101;
  --kw-red-ink: #B40101;        /* red text on light: 7.4:1 on white */
  --kw-charcoal: #171719;
  --kw-surface-dark: #202024;
  --kw-warm: #F5F2ED;
  --kw-sand: #E8E3DB;
  --kw-grey-1: #CCCCCC;
  --kw-grey-2: #999999;
  --kw-grey-3: #666666;
  --font-latin: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-accent: "EB Garamond", Garamond, "Times New Roman", serif;
  --font-arabic: Cairo, "Geeza Pro", Tahoma, sans-serif;

  /* --- 1. Primitives (re-pointed onto the KW foundations) ------------------ */
  --red-50: #FBEFEF;
  --red-100: #F5DADA;
  --red-200: #E9B3B3;
  --red-300: #D98080;
  --red-400: #CC4D4D;
  --red-500: var(--kw-red);
  --red-600: var(--kw-red);
  --red-700: #8F0101;
  --red-800: #6E0101;
  --red-900: #3F0000;
  --gray-0: #ffffff;
  --gray-25: #FAF8F5;
  --gray-50: var(--kw-warm);
  --gray-100: var(--kw-sand);
  --gray-200: var(--kw-grey-1);
  --gray-300: #B5B5B5;
  --gray-400: var(--kw-grey-2);
  --gray-500: var(--kw-grey-3);
  --gray-600: #55555A;
  --gray-700: #3A3A3E;
  --gray-800: var(--kw-surface-dark);
  --gray-900: var(--kw-charcoal);
  --gray-950: #0F0F11;

  /* --- 2. Semantic: surfaces and ink (light) ------------------------------ */
  --bg: var(--kw-warm);
  --bg-sunken: var(--kw-sand);
  --paper: var(--gray-0);
  --surface-2: var(--gray-25);
  --surface-inset: var(--gray-100);
  --ink: var(--kw-charcoal);
  --ink-soft: #3A3A3E;
  --muted: var(--kw-grey-3);
  --line: var(--kw-grey-1);
  --line-strong: var(--kw-grey-3);   /* 3:1 on white and warm white: fields and outline buttons */
  --overlay: rgba(13, 13, 15, .66);
  --glass: var(--paper);
  --glass-line: var(--line);

  /* --- 3. Semantic: brand red -------------------------------------------- */
  --brand: var(--kw-red);          /* filled surfaces — always pairs with --on-brand */
  --brand-hover: #8F0101;
  --brand-fill-hover: #8F0101;  /* hover on a red FILL — must keep --on-brand legible */
  --brand-press: #6E0101;
  --brand-ink: var(--kw-red-ink);      /* red as text/icon on a light surface (6.6:1) */
  --brand-soft: var(--kw-warm);      /* tinted fill */
  --brand-soft-ink: var(--kw-red-ink);
  --brand-ring: rgba(180, 1, 1, .3);
  --on-brand: #FFFFFF;              /* 5.0:1 on --brand in both themes */

  /* --- 4. Semantic: black panels ----------------------------------------- */
  --contrast: var(--gray-900);
  --contrast-2: var(--gray-950);
  --on-contrast: #ffffff;
  --on-contrast-soft: rgba(255, 255, 255, .74);
  --on-contrast-faint: rgba(255, 255, 255, .54);
  --on-contrast-brand: #ff7a7d;     /* red that survives a black background */
  --contrast-line: rgba(255, 255, 255, .14);
  --contrast-fill: rgba(255, 255, 255, .08);

  /* --- 5. Semantic: over photography -------------------------------------- */
  --on-media: #ffffff;
  --on-media-soft: rgba(255, 255, 255, .78);
  --on-media-faint: rgba(255, 255, 255, .6);
  --on-media-line: rgba(255, 255, 255, .22);
  --on-media-line-strong: rgba(255, 255, 255, .55);
  --scrim: none;
  --scrim-strong: none;

  /* --- 6. Semantic: status ------------------------------------------------ */
  --success: #0f7753;
  --success-soft: #e2f4ec;
  --warning: #97600a;
  --warning-soft: #fdf0dc;
  --danger: var(--kw-red);
  --danger-soft: var(--red-50);
  --focus: var(--kw-charcoal);

  /* --- 7. Elevation ------------------------------------------------------- */
  --shadow-xs: none;
  --shadow-sm: none;
  --shadow-soft: none;
  --shadow-pop: none;
  --shadow-brand: none;

  /* --- 8. Radii, motion, layout ------------------------------------------ */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 38px;
  --r-pill: 999px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --dur-1: .14s;
  --dur-2: .22s;
  --dur-3: .36s;
  --header-h: 76px;

  /* --- 9. Typography ------------------------------------------------------ */
  --font-body: var(--font-latin);
  --font-heading: var(--font-latin);
  --tracking-tight: -.035em;
  --tracking-caps: .13em;

  /* --- 10. Legacy aliases -------------------------------------------------
     Older published `themes` rows and any not-yet-migrated markup still name
     the previous palette. Mapping them onto the semantic layer keeps those
     surfaces on-system instead of reverting to the retired green. */
  --forest: var(--contrast);
  --forest-2: var(--contrast-2);
  --accent: var(--brand);
  --sand: var(--surface-inset);
  --paper-warm: var(--kw-warm);   /* card tag chips on the white panel */
  --orange: var(--brand-ink);

  color-scheme: light;
}

/* Dark is a token swap, not a second stylesheet: only the semantic layer is
   restated. --brand keeps the same fill because white-on-#B40101 clears 4.5:1
   in both themes; red used as *text* moves up the ramp instead. */
:root[data-theme="dark"] {
  --bg: var(--kw-charcoal);
  --bg-sunken: #0F0F11;
  --paper: var(--kw-surface-dark);
  --surface-2: #1c1c20;
  --surface-inset: #212127;
  --ink: var(--kw-warm);
  --ink-soft: var(--kw-sand);
  --muted: var(--kw-grey-2);
  --line: #3A3A3E;
  --line-strong: var(--kw-grey-2);   /* 3:1 on every dark surface: fields and outline buttons */
  --overlay: rgba(0, 0, 0, .74);
  --glass: var(--paper);
  --glass-line: var(--line);

  --brand-hover: var(--red-400);
  --brand-fill-hover: #8F0101;
  --brand-press: var(--red-500);
  --brand: var(--kw-red);
  --on-brand: #FFFFFF;
  --brand-ink: #FF6B6B;
  --brand-soft: #2A1414;
  --brand-soft-ink: #FF6B6B;
  --brand-ring: rgba(255, 107, 107, .38);

  --contrast: var(--kw-surface-dark);
  --contrast-2: #101013;

  --success: #43c898;
  --success-soft: rgba(67, 200, 152, .16);
  --warning: #e0a84a;
  --warning-soft: rgba(224, 168, 74, .16);
  --danger: #ff7a7d;
  --danger-soft: rgba(255, 122, 125, .16);
  --focus: var(--kw-warm);

  --shadow-xs: none;
  --shadow-sm: none;
  --shadow-soft: none;
  --shadow-pop: none;
  --shadow-brand: none;

  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: var(--font-latin); -webkit-font-smoothing: antialiased; }
/* Arabic pages: every Latin-stack consumer (headings, controls) resolves to Cairo. */
html[lang="ar"] { --font-latin: var(--font-arabic); }
html[lang="ar"] body { font-family: var(--font-arabic); }
body.dialog-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
/* Inline/content links remain identifiable without relying on color alone. */
 .section-note a, .map-panel a, .assistant-disclaimer a { text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: 3px; }
 .section-note a:hover, .map-panel a:hover, .assistant-disclaimer a:hover { text-decoration-thickness: .14em; }
img { display: block; max-width: 100%; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.symbol-sheet { position: absolute; width: 0; height: 0; overflow: hidden; }
.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; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 1000; padding: 12px 16px; background: var(--brand); color: var(--on-brand); border-radius: var(--r-sm); font-weight: 700; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
/* A red outline vanishes on a red fill: those controls focus in ink instead. */
.button-brand:focus-visible, .search-submit:focus-visible, .theme-option[aria-checked="true"]:focus-visible { outline-color: var(--ink); }
[hidden] { display: none !important; }

.section-pad { padding-left: clamp(20px, 5vw, 78px); padding-right: clamp(20px, 5vw, 78px); }
.site-header { height: var(--header-h); padding: 0 clamp(20px, 5vw, 78px); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: max-content; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-family: var(--font-heading), "Manrope", sans-serif; font-size: 13px; font-weight: 800; letter-spacing: -.5px; }
.brand-copy { display: grid; line-height: 1; gap: 5px; }
.brand-copy b { font-family: var(--font-latin); font-size: 14px; letter-spacing: .08em; }
.brand-copy small { font-size: 8px; letter-spacing: .16em; color: var(--muted); }
.desktop-nav { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 28px); font-size: 13px; font-weight: 600; position: relative; }
.desktop-nav > a, .nav-more { opacity: .76; transition: opacity .2s; }
.desktop-nav > a:hover, .nav-more:hover { opacity: 1; }
.nav-more { border: 0; background: transparent; padding: 8px 0; display: inline-flex; align-items: center; gap: 3px; cursor: pointer; }
.nav-more svg { width: 15px; }
.more-menu { position: absolute; right: 0; top: 40px; display: grid; min-width: 190px; padding: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.more-menu a { padding: 11px 12px; border-radius: 8px; }
.more-menu a:hover { background: var(--surface-inset); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-text-button, .mobile-menu-toggle, .icon-button { border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-text-button { gap: 6px; padding: 10px; font-size: 12px; font-weight: 700; }
.button { min-height: 44px; border: 0; border-radius: 999px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 700; cursor: pointer; transition: transform .2s var(--ease), background .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--contrast); color: var(--on-contrast); }
.button-light { background: var(--paper); color: var(--ink); outline: 1px solid var(--line); outline-offset: -1px; }
.button-accent, .button-brand { background: var(--brand); color: var(--on-brand); }
.button-accent:hover, .button-brand:hover { background: var(--brand-fill-hover); }
.header-recommend { min-height: 44px; padding: 0 16px; font-size: 12px; }
.desktop-nav > a, .nav-more { white-space: nowrap; }
.header-recommend svg { width: 17px; }
.mobile-menu-toggle { display: none; width: 42px; height: 42px; }
.mobile-nav { position: fixed; inset: var(--header-h) 0 auto; z-index: 45; padding: 18px 22px 26px; background: var(--paper); border: 1px solid var(--line); grid-template-columns: 1fr 1fr; gap: 6px; }
.mobile-nav:not([hidden]) { display: grid; }
.mobile-nav a { padding: 12px 10px; border-bottom: 1px solid var(--line); font-weight: 600; }

.hero { min-height: 690px; display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(30px, 5vw, 72px); align-items: center; position: relative; padding-top: 52px; padding-bottom: 126px; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 580px; height: 580px; border: 1px solid var(--brand-ring); border-radius: 50%; left: -350px; top: 20px; }
.hero-copy { position: relative; z-index: 1; max-width: 620px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-ink); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow > span { width: 22px; height: 1px; background: currentColor; }
.eyebrow.light { color: var(--on-contrast-brand); }
h1, h2, h3 { font-family: var(--font-latin); margin: 0; letter-spacing: var(--tracking-tight); }
.hero h1 { margin-top: 20px; max-width: 650px; font-size: clamp(48px, 5.3vw, 82px); line-height: .99; font-weight: 600; }
.hero h1 em { color: var(--brand-ink); font-style: normal; }
.hero-copy > p { max-width: 570px; margin: 26px 0 28px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.hero-proof { display: flex; gap: clamp(18px, 3vw, 46px); }
.hero-proof div { display: grid; gap: 2px; }
.hero-proof b { font-family: var(--font-latin); font-size: 21px; font-variant-numeric: tabular-nums; }
.hero-proof span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.hero-visual { position: relative; min-height: 510px; border-radius: 240px 240px 24px 24px; background: url("https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?auto=format&fit=crop&w=1600&q=85") center/cover; border: 1px solid var(--line); }
.hero-status { position: absolute; top: 60px; left: -36px; display: flex; align-items: center; gap: 11px; padding: 13px 17px; border: 1px solid var(--glass-line); border-radius: 14px; background: var(--paper); color: var(--ink); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--success); outline: 4px solid var(--success-soft); }
.hero-status span:last-child { display: grid; gap: 2px; }
.hero-status small { color: var(--muted); font-size: 10px; }
.hero-status b { font-size: 12px; }
.hero-caption { position: absolute; left: 28px; right: 28px; bottom: 28px; display: grid; color: var(--on-media); }
.hero-caption span { margin-bottom: 7px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.hero-caption b { font-family: var(--font-latin); font-size: 30px; }
.hero-caption small { margin-top: 3px; opacity: .82; }
.search-dock { position: absolute; z-index: 5; left: clamp(20px,5vw,78px); right: clamp(20px,5vw,78px); bottom: 34px; min-height: 106px; padding: 17px; display: grid; grid-template-columns: minmax(280px, 1.6fr) 1fr 1fr 66px; gap: 0; align-items: stretch; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; }
.search-dock label { min-width: 0; padding: 6px 24px; display: flex; flex-direction: column; justify-content: center; gap: 7px; border-right: 1px solid var(--line); }
.search-dock label > span { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.search-dock input, .search-dock select { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-weight: 700; }
.search-dock input::placeholder { color: var(--muted); font-weight: 500; }
.search-submit { border: 0; border-radius: 15px; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; cursor: pointer; transition: background var(--dur-2); }
.search-submit:hover { background: var(--brand-fill-hover); }
.search-submit span { display: none; }
.search-submit svg { width: 26px; height: 26px; transition: transform .2s; }
.search-submit:hover svg { transform: translateX(3px); }

.trust-strip { padding: 17px clamp(20px,5vw,78px); background: var(--contrast); color: var(--on-contrast); display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 12px; }
.trust-strip > span { color: var(--on-contrast-brand); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.trust-strip div { display: flex; align-items: center; gap: 8px; opacity: .85; }
.trust-strip b { color: var(--on-contrast-brand); }

.section-block { padding-top: clamp(78px, 9vw, 132px); padding-bottom: clamp(78px, 9vw, 132px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 38px; }
.section-head h2 { margin-top: 13px; max-width: 720px; font-size: clamp(36px, 4vw, 58px); line-height: 1.05; font-weight: 600; }
.section-head p, .units-section .section-head p { max-width: 430px; color: var(--muted); line-height: 1.6; }
/* Muted text on sunken/inset surfaces: --muted alone is 4.25:1 on #ededf0 (WCAG AA needs 4.5).
   Mixed toward --ink so it follows every published theme, light and dark. */
:root { --muted-on-sunken: color-mix(in srgb, var(--muted) 82%, var(--ink)); }
.launches .section-head p { color: var(--muted-on-sunken); }
.text-link { border: 0; padding: 8px 0; background: transparent; display: inline-flex; align-items: center; gap: 9px; color: var(--brand-ink); font-size: 13px; font-weight: 800; cursor: pointer; }
.text-link svg { width: 18px; height: 18px; flex: none; transition: transform .2s; }
.text-link:hover svg { transform: translateX(3px); }
.destination-grid { display: grid; grid-template-columns: 1.15fr .85fr .85fr; grid-template-rows: 250px 250px; grid-auto-rows: 250px; gap: 16px; }
.destination-card { position: relative; overflow: hidden; border-radius: var(--r-md); background-color: var(--surface-inset); background-position: center; background-size: cover; color: var(--on-media); cursor: pointer; }
.destination-card:first-child { grid-row: 1 / 3; }
.destination-card::before { content: ""; position: absolute; inset: 0; background: var(--scrim); }
.destination-card::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--on-media-line); border-radius: inherit; pointer-events: none; }
.destination-card > div { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 22px 16px; background: var(--kw-charcoal); display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.destination-card span { display: grid; gap: 4px; }
.destination-card small { text-transform: uppercase; letter-spacing: .11em; opacity: .72; font-size: 9px; }
.destination-card b { font-family: var(--font-latin); font-size: 24px; }
.destination-card i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--on-media-line-strong); transition: transform .2s, background .2s, border-color .2s; }
.destination-card:hover i { transform: translateX(3px); background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.developer-strip { padding-top: 34px; padding-bottom: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.developer-list { margin-top: 25px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.developer-logo { min-height: 72px; display: grid; place-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink-soft); font-family: var(--font-latin); font-size: 14px; font-weight: 800; text-align: center; }

.show-more-row, .map-list-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.show-more-row button, .map-list-controls button { min-height: 44px; padding: 10px 18px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); color: var(--brand-ink); cursor: pointer; }
.show-more-row button:focus-visible, .map-list-controls button:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 3px; }
.show-more-row button:disabled { opacity: .6; cursor: wait; }

.project-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.verified-badge { display: inline-block; padding: 4px 9px; margin-bottom: 8px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }

.units-section { background: var(--paper); }
.view-actions { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.units-filter-bar { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-inset); }
.units-filter-dropdown { position: relative; }
.units-filter-dropdown summary { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--ink); cursor: pointer; list-style: none; font-weight: 700; }
.units-filter-dropdown summary::-webkit-details-marker { display: none; }
.units-filter-dropdown summary svg { width: 18px; height: 18px; }
.units-filter-dropdown summary b { display: inline-grid; min-width: 20px; height: 20px; place-items: center; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-size: 11px; }
.units-filter-dropdown summary b[hidden] { display: none; }
.units-filter-panel { position: absolute; z-index: 8; top: calc(100% + 8px); left: 0; width: min(680px, calc(100vw - 40px)); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.units-filter-panel label, .price-tag-group { display: grid; gap: 6px; min-width: 0; color: var(--muted); font-size: 11px; font-weight: 700; }
.units-filter-panel > label.units-filter-destination-row { grid-column: 1 / -1; }
.units-filter-panel select { width: 100%; min-height: 40px; box-sizing: border-box; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-inset); color: var(--ink); font: inherit; }
.price-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.price-tag { min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-inset); color: var(--ink); cursor: pointer; font-size: 11px; font-weight: 700; }
.price-tag.active, .price-tag:hover { border-color: var(--brand); background: var(--brand); color: var(--on-brand); }
.units-filter-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; border-top: 1px solid var(--line); }
.units-filter-submit { min-height: 40px; white-space: nowrap; }
.units-filter-summary { color: var(--muted); font-size: 12px; }
.filter-chip, .choice-row button { min-height: 38px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-weight: 700; font-size: 12px; cursor: pointer; }
.filter-chip.active, .choice-row button.selected { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.result-summary { min-height: 28px; margin: -20px 0 18px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; }
.unit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.search-active-filters { margin: 0 0 18px; overflow-wrap: anywhere; color: var(--muted); font-size: 13px; }
.search-active-filters:empty { display: none; }
.unit-grid > .empty-state { grid-column: 1 / -1; }
#units-toggle:disabled { cursor: wait; opacity: .6; }
.round-action { width: 38px; height: 38px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--ink); cursor: pointer; }
.round-action.active { background: var(--brand); color: var(--on-brand); }
.round-action svg { width: 17px; }
/* Catalog-card links use their component rules; keep this boundary closed so
   the recommendation form below is always parsed by browsers and minifiers. */
.empty-state { grid-column: 1/-1; padding: 64px 24px; border: 1px dashed var(--line); border-radius: var(--r-md); text-align: center; }
.empty-state h3 { font-size: 24px; }
.empty-state p { color: var(--muted); }

.recommendation-section { padding-top: 100px; padding-bottom: 100px; background: var(--contrast); color: var(--on-contrast); display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(48px, 8vw, 130px); align-items: start; }
.recommendation-intro { position: static; }
.recommendation-intro h2 { margin-top: 16px; font-size: clamp(38px,4.2vw,60px); line-height: 1.04; font-weight: 600; }
.recommendation-intro > p { max-width: 500px; margin: 24px 0 30px; color: var(--on-contrast-soft); line-height: 1.7; }
.ai-promise { display: inline-flex; align-items: center; gap: 12px; padding: 13px 16px; border: 1px solid var(--contrast-line); border-radius: 14px; background: var(--contrast-fill); }
.ai-promise svg { color: var(--on-contrast-brand); }
.ai-promise span { display: grid; gap: 3px; }
.ai-promise small { color: var(--on-contrast-faint); }
.recommendation-form { padding: 34px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); color: var(--ink); }
.form-step { padding: 19px 0; border-bottom: 1px solid var(--line); display: grid; gap: 12px; }
.form-step > span { color: var(--brand-ink); font-size: 10px; font-weight: 800; }
.form-step label { font-family: var(--font-latin); font-size: 18px; font-weight: 700; }
.form-step select { width: 100%; min-height: 44px; border: 0; border-radius: 0; background: transparent; color: var(--ink); font-weight: 700; outline: 0; }
.choice-row { display: flex; gap: 7px; flex-wrap: wrap; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.remember-choice { margin: 22px 0; display: flex; align-items: flex-start; gap: 11px; cursor: pointer; }
.remember-choice input { margin-top: 4px; accent-color: var(--brand); }
.remember-choice span { display: grid; gap: 3px; }
.remember-choice small { color: var(--muted); line-height: 1.4; }
.recommendation-submit { width: 100%; }
.recommendation-results { grid-column: 1/-1; min-width: 0; padding-top: 38px; border-top: 1px solid var(--contrast-line); }
.recommendation-results-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 10px; }
.recommendation-results h3 { margin: 8px 0 0; font-size: 30px; line-height: 1.1; }
.recommendation-result-count { padding: 8px 12px; border: 1px solid var(--contrast-line); border-radius: var(--r-pill); color: var(--on-contrast-soft); font-size: 11px; white-space: nowrap; }
.recommendation-summary { display: grid; gap: 4px; margin-bottom: 22px; color: var(--on-contrast-soft); }
.recommendation-summary p, .recommendation-summary .recommendation-scope { margin: 0; line-height: 1.55; }
.recommendation-summary p { color: var(--on-contrast-faint); font-size: 13px; }
.recommendation-empty { margin: 0 0 22px; color: var(--on-contrast-soft); }
.match-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; align-items: stretch; }
.match-card { min-height: 294px; padding: 22px; border-radius: 20px; background: none; border: 1px solid var(--contrast-line); display: flex; flex-direction: column; transition: transform var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease); }
.match-card:hover { transform: translateY(-4px); border-color: rgba(255,122,125,.55); background: none; }
.match-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.match-badge { color: var(--on-contrast-brand); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.match-badge.is-near { color: var(--on-contrast-soft); }
.match-score { color: var(--on-contrast-faint); font-size: 11px; }
.match-card h4 { margin: 18px 0 4px; font-family: var(--font-latin); font-size: 23px; line-height: 1.1; }
.match-location { margin: 0; color: var(--on-contrast-faint); font-size: 11px; }
.match-price { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; }
.match-price b { font-size: 19px; }
.match-price span { color: var(--on-contrast-soft); font-size: 12px; }
.match-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.match-facts span { padding: 6px 8px; border-radius: 7px; background: rgba(255,255,255,.08); color: var(--on-contrast-soft); font-size: 10px; }
.match-card p.match-reason { min-height: 0; margin: 16px 0 0; color: var(--on-contrast-soft); font-size: 12px; line-height: 1.6; }
.match-trust { display: flex; align-items: center; gap: 6px; margin: 12px 0 20px; color: var(--on-contrast-faint); font-size: 10px; }
.match-trust svg { width: 13px; height: 13px; color: var(--on-contrast-brand); }
.match-card .text-link { color: var(--on-contrast-brand); }
.match-card .text-link { min-height: 44px; margin-top: auto; align-self: flex-start; }
/* Property intelligence v2: intent cards, chip steps, live brief, market context,
   skeleton loading and staggered result cards. Motion is gated at the end. */
.recommendation-form .rec-step { padding: 16px 0; }
.intent-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.choice-row.intent-cards button { display: grid; justify-items: start; gap: 4px; min-height: 0; padding: 14px 14px 13px; border-radius: 16px; text-align: start; font-size: 14px; background: var(--paper); color: var(--ink); transition: border-color var(--dur-2), background var(--dur-2), transform .35s var(--ease), box-shadow var(--dur-2); }
.choice-row.intent-cards button svg { width: 20px; height: 20px; margin-bottom: 4px; color: var(--brand-ink); }
.choice-row.intent-cards button b { font-family: var(--font-latin); font-size: 15px; }
.choice-row.intent-cards button small { color: var(--muted); font-size: 11.5px; font-weight: 500; line-height: 1.35; }
.choice-row.intent-cards button:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.choice-row.intent-cards button.selected { border-color: var(--brand); background: var(--brand-soft); color: var(--ink); outline: 1px solid var(--brand); outline-offset: -1px; }
.choice-row.intent-cards button.selected small { color: var(--ink-soft); }
.choice-row.intent-cards button[role="radio"][aria-checked="true"]::after { content: none; }
.recommendation-form .form-step > .form-step-label { color: var(--ink); }
.chip-group { gap: 6px; }
.chip-group button { transition: background var(--dur-2), border-color var(--dur-2), color var(--dur-2), transform .3s var(--ease); }
.chip-group button:hover:not(.selected) { border-color: var(--line-strong); }
.rec-inventory { margin-top: 2px; padding: 4px; border: 1px solid var(--line); border-radius: var(--r-pill); width: fit-content; max-width: 100%; }
.rec-inventory button { min-height: 34px; border-color: transparent; background: transparent; font-size: 11.5px; }
.rec-select { position: relative; }
.rec-select select { padding: 0 34px 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-inset); -webkit-appearance: none; appearance: none; cursor: pointer; transition: border-color var(--dur-2), box-shadow var(--dur-2); }
[dir="rtl"] .rec-select select { padding: 0 14px 0 34px; }
.rec-select::after { content: ""; position: absolute; inset-inline-end: 15px; top: 50%; width: 7px; height: 7px; border-inline-end: 2px solid var(--muted); border-block-end: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.rec-select select:focus-visible { border-color: var(--focus); outline: 2px solid var(--focus); outline-offset: 2px; }
.rec-live { display: grid; gap: 8px; margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: var(--surface-inset); }
.rec-brief { margin: 0; color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.5; }
.rec-market { display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: start; gap: 2px 8px; margin: 0; color: var(--ink-soft); font-size: 12.5px; line-height: 1.5; }
.rec-market a { grid-column: 2; justify-self: start; }
.rec-market[hidden] { display: none; }
.rec-market svg { width: 16px; height: 16px; margin-top: 2px; color: var(--brand-ink); }
.rec-market a { color: var(--brand-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.recommendation-submit { position: relative; }
.recommendation-submit.is-loading { pointer-events: none; }
.recommendation-submit.is-loading svg { opacity: 0; }
.recommendation-submit.is-loading::after { content: ""; position: absolute; inset-inline-end: 22px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border: 2px solid currentColor; border-inline-end-color: transparent; border-radius: 50%; }
.recommendation-status { margin: 0 0 16px; color: var(--on-contrast-soft); }
.match-card.is-skeleton { min-height: 294px; gap: 14px; }
.match-card.is-skeleton i { display: block; height: 12px; border-radius: 6px; background: var(--contrast-2); }
.match-card.is-skeleton i:nth-child(1) { width: 34%; }
.match-card.is-skeleton i:nth-child(2) { width: 72%; height: 22px; margin-top: 10px; }
.match-card.is-skeleton i:nth-child(3) { width: 48%; }
.match-card.is-skeleton i:nth-child(4) { width: 88%; margin-top: auto; }
.recommendation-summary p.recommendation-brief { margin: 0 0 4px; color: var(--on-contrast); font-size: 15px; font-weight: 700; }
.match-context { display: grid; gap: 2px; margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--contrast-line); background: rgba(255,255,255,.05); font-size: 11.5px; line-height: 1.45; }
.match-context b { color: var(--on-contrast); font-size: 13px; }
.match-context span { color: var(--on-contrast-soft); }
.match-context.is-below { border-color: color-mix(in srgb, #43c898 45%, transparent); }
.match-context.is-below span { color: #7fe0b8; }
.match-context.is-above span { color: #ffb3b5; }
.match-why { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.match-why li { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: var(--r-pill); background: rgba(255,255,255,.07); color: var(--on-contrast-soft); font-size: 11px; line-height: 1.3; }
.match-why li svg { width: 12px; height: 12px; color: #7fe0b8; }
.match-why li.is-relaxed { border: 1px dashed var(--contrast-line); background: transparent; color: var(--on-contrast-faint); }
.recommendation-footnote { margin: 18px 0 0; color: var(--on-contrast-faint); font-size: 11.5px; line-height: 1.6; }
@media (max-width: 520px) {
  .rec-inventory { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; border-radius: 16px; }
  .rec-inventory button { min-height: 40px; padding: 4px 6px; border-radius: 12px; line-height: 1.2; white-space: normal; }
  .intent-cards { grid-template-columns: 1fr; }
  .choice-row.intent-cards button { grid-template-columns: 24px 1fr; grid-template-areas: "icon title" "icon note"; column-gap: 12px; align-items: center; }
  .choice-row.intent-cards button svg { grid-area: icon; margin: 0; }
  .choice-row.intent-cards button b { grid-area: title; }
  .choice-row.intent-cards button small { grid-area: note; }
}
@media (prefers-reduced-motion: no-preference) {
  .chip-group button.selected, .intent-cards button.selected { animation: rec-pop .38s var(--ease); }
  .recommendation-submit.is-loading::after { animation: rec-spin .7s linear infinite; }
  .rec-market:not([hidden]), .rec-brief { animation: rec-fade .35s var(--ease); }
  .match-card.is-skeleton i { animation: rec-shimmer 1.2s ease-in-out infinite alternate; }
  .match-grid:not(.is-loading) .match-card { animation: rec-rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); }
  .match-card { transition: transform .35s var(--ease), border-color var(--dur-2), background var(--dur-2); }
}
@keyframes rec-pop { 0% { transform: scale(.94); } 60% { transform: scale(1.03); } 100% { transform: scale(1); } }
@keyframes rec-spin { to { transform: rotate(360deg); } }
@keyframes rec-fade { from { opacity: 0; transform: translateY(4px); } }
@keyframes rec-shimmer { from { opacity: .6; } to { opacity: 1; } }
@keyframes rec-rise { from { opacity: 0; transform: translateY(18px) scale(.98); } }

.split-feature { padding-top: 110px; padding-bottom: 110px; display: grid; grid-template-columns: 1.08fr .92fr; gap: 20px; align-items: stretch; }
.feature-card { min-height: 680px; padding: 36px; border-radius: var(--r-lg); display: flex; flex-direction: column; justify-content: space-between; color: var(--on-media); }
/* No stock-photo default: it was a 272 KB third-party download replaced moments later by the featured project's own image (06-catalog-rendering.js). */
.feature-project { background: var(--scrim), var(--contrast) center/cover; }
.feature-project :is(h2, p, .feature-place) { width: fit-content; padding: 6px 12px; background: var(--kw-charcoal); color: #fff; }
.feature-card h2 { margin: 10px 0 12px; font-size: 55px; font-weight: 600; }
.feature-card p { max-width: 480px; color: var(--on-media-soft); line-height: 1.65; }
.feature-place { display: flex; align-items: center; gap: 5px; font-size: 12px; }
.feature-place svg { width: 16px; height: 16px; flex: none; }
.feature-card-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.feature-project-controls { display: flex; align-items: center; gap: 9px; padding: 5px; border: 1px solid rgba(255,255,255,.24); border-radius: var(--r-pill); background: var(--kw-charcoal); }
.feature-project-controls button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: var(--on-media); cursor: pointer; }
.feature-project-controls button:hover { background: rgba(255,255,255,.24); }
.feature-project-controls button:first-child svg { transform: rotate(180deg); }
.feature-project-controls svg { width: 16px; height: 16px; }
.feature-project-controls span { min-width: 52px; color: var(--on-media-soft); font-size: 11px; font-variant-numeric: tabular-nums; text-align: center; }

/* Text actions in section headers are touch targets, not just inline copy. */
.section-head > .text-link,
.feature-offers-head > .text-link {
  min-height: 44px;
  padding-block: 8px;
}
.feature-panel { min-width: 0; padding: 36px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
.feature-panel h3 { margin: 13px 0 10px; font-size: clamp(30px,2.5vw,40px); line-height: 1.08; }
.market-shortlist { min-height: 680px; display: flex; flex-direction: column; }
.market-shortlist-note { max-width: 580px; margin: 0 0 20px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.market-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 5px; border-radius: 13px; background: var(--surface-inset); }
.market-switch button { min-height: 42px; padding: 8px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--muted-on-sunken); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.market-switch button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.market-panel { margin-top: 16px; }
.market-panel[hidden] { display: none; }
.market-list { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; list-style: none; }
.market-list a { min-height: 66px; padding: 11px; display: grid; grid-template-columns: 25px minmax(0,1fr) 16px; column-gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--surface-2); transition: border-color var(--dur-2), background var(--dur-2), transform var(--dur-2); }
.market-list a:hover, .market-list a:focus-visible { border-color: var(--brand); background: var(--brand-soft); transform: translateY(-1px); }
.market-list a > span { grid-row: 1 / 3; color: var(--brand-ink); font-size: 10px; font-weight: 800; }
.market-list b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.market-list small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 9px; }
.market-list svg { grid-column: 3; grid-row: 1 / 3; width: 14px; height: 14px; color: var(--muted); }
.feature-offers { margin-top: auto; padding-top: 17px; }
.feature-offers[hidden] { display: none; }
.feature-offers-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.feature-offers-head .text-link { font-size: 11px; }
.offer-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.offer-item { min-width: 0; padding: 9px; display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 9px; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--ink); font: inherit; text-align: start; cursor: pointer; }
a.offer-item { text-decoration: none; }
.offer-item:hover { border-color: var(--brand); background: var(--brand-soft); }
.offer-value { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: var(--brand-soft); color: var(--brand-soft-ink); font-weight: 800; }
.offer-item span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.offer-item b, .offer-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offer-item b { font-size: 11px; }
.offer-item small { color: var(--muted); font-size: 9px; }
@media (min-width: 1121px) {
  /* Keep the persistent Ask KW RED launcher from covering active offer links. */
  .feature-offers-head, .feature-offers .offer-list { width: calc(100% - 190px); min-width: 290px; }
  .feature-offers .offer-list { grid-template-columns: 1fr; }
}
.launches { background: var(--bg-sunken); }
.launch-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.launch-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.launch-filters .filter-chip span { margin-inline-start: 4px; font-weight: 600; opacity: .6; }
.launch-filters .filter-chip.active span { opacity: .85; }
.launch-media-glyph { position: relative; width: 44%; max-width: 150px; height: auto; margin-top: 14px; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .6; }
.launch-empty { grid-column: 1 / -1; margin: 0; padding: 28px 0; color: var(--muted); text-align: center; }
.market-watch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; align-items: stretch; }
.market-watch-cta { margin-top: 22px; text-align: center; }

/* Market Index homepage section. Lime on white is ~1.2:1, so light mode inks data with the theme's purple. */
.market-index-home { --mih-data: var(--brand); --mih-neg: var(--muted); --mih-up: var(--success); }
:root[data-theme="light"] .market-index-home { --mih-data: var(--contrast); }
.mih-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mih-stage { display: grid; gap: 20px; }
.mih-stage[hidden] { display: none; }
.mih-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 14px; }
.mih-filters[hidden] { display: none; }
.mih-filters .mih-fld { flex: 1 1 220px; max-width: 320px; }
.mih-select { position: relative; display: block; }
.mih-select select { width: 100%; height: 48px; padding: 0 40px 0 14px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface-inset); color: var(--ink); font: 600 15px/1 var(--font-latin); -webkit-appearance: none; appearance: none; cursor: pointer; transition: border-color var(--dur-2), box-shadow var(--dur-2), background var(--dur-2); }
[dir="rtl"] .mih-select select { padding: 0 14px 0 40px; }
.mih-select::after { content: ""; position: absolute; inset-inline-end: 17px; top: 50%; width: 7px; height: 7px; border-inline-end: 2px solid var(--muted); border-block-end: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.mih-select select:focus-visible { border-color: var(--focus); outline: 2px solid var(--focus); outline-offset: 2px; background: var(--paper); }
.mih-clear { height: 48px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 14px; background: transparent; color: var(--brand-ink); font-weight: 700; cursor: pointer; }
.mih-clear[hidden] { display: none; }
.mih-clear:hover { border-color: var(--brand-ink); }
.mih-clear:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.mih-fstatus { flex-basis: 100%; margin: 0; color: var(--danger); font-size: 13px; font-weight: 600; }
.mih-fstatus:empty { display: none; }
.mih-busy :is(.mih-kpis,.mih-duo) { opacity: .55; transition: opacity .2s; }
.mih-mix[hidden] { display: none; }
.mih-row.sel .mih-name { color: var(--brand-ink); }
.mih-row.sel .mih-name::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-inline-end: 6px; border-radius: 50%; background: var(--brand); vertical-align: 1px; }
.mih-kpis { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); gap: 16px; }
.mih-kpi { min-width: 0; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); transition: transform .45s var(--ease), border-color .3s; }
.mih-kpi:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); }
.mih-kpi.main { background: var(--paper); }
.mih-kpi > span:first-child { display: block; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.mih-kpi strong { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: 8px; color: var(--mih-data); font-family: var(--font-heading); font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -.045em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.mih-kpi.main strong { font-size: clamp(44px, 5.6vw, 76px); letter-spacing: -.06em; }
.mih-kpi strong em { color: var(--muted); font-family: var(--font-latin); font-size: 13px; font-style: normal; font-weight: 600; letter-spacing: 0; }
.mih-kpi p { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.mih-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.mih-card { min-width: 0; padding: clamp(20px, 2.6vw, 32px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
.mih-card h3 { font-size: 19px; }
.mih-sub, .mih-note { margin: 6px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.mih-note { margin-top: 18px; }
.mih-bars { display: grid; gap: 14px; margin-top: 20px; }
.mih-axis { display: flex; justify-content: space-between; margin-bottom: -4px; color: var(--muted); font-size: 11px; }
.mih-row { display: grid; grid-template-columns: minmax(104px, 1.1fr) minmax(0, 2fr) minmax(4.4ch, auto); align-items: center; gap: 12px; }
.mih-name { min-width: 0; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.mih-name small { display: block; margin-top: 2px; color: var(--muted); font-size: 11.5px; font-weight: 400; }
.mih-row b { font-size: 13px; text-align: end; font-variant-numeric: tabular-nums; }
.mih-track { position: relative; display: block; height: 11px; border-radius: 8px; background: var(--surface-inset); overflow: hidden; }
.mih-track::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: 50%; width: 2px; margin-inline-start: -1px; background: var(--line-strong); }
.mih-supply .mih-track::after { display: none; }
.mih-track i { position: absolute; inset-block: 0; border-radius: 8px; background: var(--mih-data); transform-origin: left; }
.mih-track i.pos { inset-inline-start: 50%; width: calc(var(--w) / 2); }
.mih-track i.neg { inset-inline-end: 50%; width: calc(var(--w) / 2); background: var(--mih-neg); transform-origin: right; }
.mih-track i.rank { inset-inline-start: 0; width: var(--w); }
[dir="rtl"] .mih-track i.pos, [dir="rtl"] .mih-track i.rank { transform-origin: right; }
[dir="rtl"] .mih-track i.neg { transform-origin: left; }
.mih-mix { margin-top: 22px; padding-top: 4px; border-top: 1px solid var(--line); }
.mih-mixbar { display: flex; gap: 3px; height: 14px; margin-top: 10px; overflow: hidden; border-radius: 9px; }
.mih-mixbar i { flex: 0 0 var(--w); min-width: 3px; background: color-mix(in srgb, var(--mih-data) calc(100% - var(--s) * 18%), var(--surface-inset)); transform-origin: left; }
[dir="rtl"] .mih-mixbar i { transform-origin: right; }
.mih-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 0; padding: 0; list-style: none; color: var(--ink-soft); font-size: 12.5px; }
.mih-legend i { display: inline-block; width: 10px; height: 10px; margin-inline-end: 6px; border-radius: 3px; background: color-mix(in srgb, var(--mih-data) calc(100% - var(--s) * 18%), var(--surface-inset)); }
.mih-legend b { font-variant-numeric: tabular-nums; }
.mih-stress { margin-top: 20px; }
.mih-tag { display: inline-block; padding: 5px 10px; border-radius: var(--r-pill); background: var(--brand-soft); color: var(--brand-ink); font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.mih-head h3 { margin-top: 12px; font-size: clamp(24px, 2.6vw, 32px); }
.mih-head .mih-sub { max-width: 66ch; }
.mih-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 22px 0 4px; }
.mih-fld { display: grid; gap: 7px; min-width: 0; }
.mih-fld > span:first-child { color: var(--muted); font-size: 12px; font-weight: 600; }
.mih-input { position: relative; }
.mih-input input { width: 100%; height: 50px; padding: 0 56px 0 14px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface-inset); color: var(--ink); font: 600 16px/1 var(--font-latin); font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; transition: border-color var(--dur-2), box-shadow var(--dur-2), background var(--dur-2); }
[dir="rtl"] .mih-input input { padding: 0 14px 0 56px; }
.mih-input input::-webkit-outer-spin-button, .mih-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mih-input input:focus { border-color: var(--focus); outline: 2px solid var(--focus); outline-offset: 2px; background: var(--paper); }
.mih-input input:invalid { border-color: var(--danger); }
.mih-input i { position: absolute; inset-inline-end: 12px; top: 50%; translate: 0 -50%; color: var(--muted-on-sunken); font-size: 12px; font-style: normal; font-weight: 600; pointer-events: none; }
.mih-err { min-height: 1.3em; margin: 8px 0 0; color: var(--danger); font-size: 13px; font-weight: 600; }
.mih-scens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 8px; }
.mih-scn { min-width: 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface-inset); }
.mih-scn.base { border-color: var(--line-strong); background: var(--paper); }
.mih-scn h4 { margin: 0 0 12px; font-family: var(--font-heading); font-size: 15px; }
.mih-npv > span { display: block; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.mih-npv strong { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; margin-top: 4px; font-family: var(--font-heading); font-size: clamp(20px, 2vw, 26px); letter-spacing: -.035em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.mih-npv em { color: var(--muted); font-family: var(--font-latin); font-size: 12px; font-style: normal; letter-spacing: 0; }
.mih-npv small { display: block; margin-top: 4px; font-size: 12px; font-weight: 700; }
.mih-scn[data-tone="pos"] .mih-npv b, .mih-scn[data-tone="pos"] .mih-npv small { color: var(--success); }
.mih-scn[data-tone="neg"] .mih-npv b, .mih-scn[data-tone="neg"] .mih-npv small { color: var(--danger); }
.mih-scn dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.mih-scn dt { color: var(--muted); font-size: 11px; }
.mih-scn dd { margin: 2px 0 0; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mih-out { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 22px; align-items: center; margin-top: 8px; }
.mih-out .mih-scens { grid-template-columns: 1fr; margin-top: 0; }
.mih-chart { min-width: 0; }
.mih-chart svg { display: block; width: 100%; height: auto; overflow: visible; direction: ltr; }
.mih-chart text { fill: var(--muted); font: 12px/1 var(--font-latin); }
.mih-chart .g { stroke: var(--line); stroke-dasharray: 2 5; }
.mih-chart .z { stroke: var(--line-strong); stroke-width: 1.5; }
.mih-chart .s { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.mih-chart .s.base { stroke: var(--mih-data); stroke-width: 3.5; }
.mih-chart .s.downside { stroke: var(--mih-neg); stroke-dasharray: 2 7; }
.mih-chart .s.upside { stroke: var(--mih-up); stroke-dasharray: 9 6; }
.mih-chart .l { font-weight: 700; }
.mih-chart .l.base { fill: var(--mih-data); }
.mih-chart .l.downside { fill: var(--mih-neg); }
.mih-chart .l.upside { fill: var(--mih-up); }
.mih-axisnote { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.mih-verdict { margin: 14px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.7; }
.mih-cta2 { margin-top: 10px; }
.mih-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 26px; }
.mih-skel { position: relative; overflow: hidden; height: 44px; border-radius: 14px; background: var(--surface-inset); }
.mih-kpis .mih-skel { height: 118px; border-radius: var(--r-lg); }
.mih-skel-tall { height: 360px; }
@media (prefers-reduced-motion: no-preference) {
  .mih-skel::after { content: ""; position: absolute; inset: 0; background: var(--bg-sunken); animation: mih-shimmer 1.5s ease-in-out infinite alternate; }
  .mih-armed:not(.mih-in) :is(.mih-row,.mih-kpi,.mih-scn,.mih-mix) { opacity: 0; }
  .mih-armed:not(.mih-in) :is(.mih-track i,.mih-mixbar i) { transform: scaleX(0); }
  .mih-armed.mih-in .mih-track i, .mih-armed.mih-in .mih-mixbar i { animation: mih-grow .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 150ms); }
  .mih-armed.mih-in .mih-row { animation: mih-rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
  .mih-armed.mih-in .mih-kpi { animation: mih-rise .7s var(--ease) both; }
  .mih-armed.mih-in .mih-kpi:nth-child(2) { animation-delay: .08s; }
  .mih-armed.mih-in .mih-kpi:nth-child(3) { animation-delay: .16s; }
  .mih-armed.mih-in .mih-kpi:nth-child(4) { animation-delay: .24s; }
  .mih-armed.mih-in .mih-mix { animation: mih-rise .7s var(--ease) .3s both; }
  .mih-armed.mih-in .mih-scn { animation: mih-rise .7s var(--ease) both; }
  .mih-armed.mih-in .mih-scn:nth-child(2) { animation-delay: .1s; }
  .mih-armed.mih-in .mih-scn:nth-child(3) { animation-delay: .2s; }
  .mih-armed.mih-in .mih-chart .s.draw { stroke-dasharray: 1; animation: mih-draw 1.4s var(--ease) .2s both; }
}
@keyframes mih-shimmer { from { opacity: .6; } to { opacity: 1; } }
@keyframes mih-grow { from { transform: scaleX(0); } }
@keyframes mih-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes mih-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (max-width: 1000px) { .mih-out { grid-template-columns: 1fr; } .mih-out .mih-scens { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mih-chart { max-width: 700px; margin-inline: auto; width: 100%; } .mih-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mih-kpi.main { grid-column: 1 / -1; } .mih-duo { grid-template-columns: 1fr; } .mih-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .mih-scens, .mih-out .mih-scens { grid-template-columns: 1fr; } .mih-row { grid-template-columns: minmax(0, 1fr) minmax(4.4ch, auto); } .mih-row .mih-track { grid-column: 1 / -1; grid-row: 2; } }
@media (max-width: 520px) { .mih-kpis, .mih-form { grid-template-columns: 1fr; } .mih-filters .mih-fld { flex-basis: 100%; max-width: none; } .mih-clear { width: 100%; } }
.how-section { padding-top: 100px; padding-bottom: 100px; background: var(--contrast); color: var(--on-contrast); display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(50px,8vw,130px); }
.how-section h2 { margin: 15px 0; max-width: 500px; font-size: clamp(40px,4vw,60px); font-weight: 600; line-height: 1.05; }
.how-section > div > p { color: var(--on-contrast-soft); line-height: 1.7; }
.how-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--on-contrast); color: var(--contrast); font-weight: 700; font-size: 14px; text-decoration: none; transition: transform .2s, opacity .2s; }
.how-link:hover { transform: translateY(-2px); opacity: .92; }
.how-link:focus-visible { outline: 3px solid var(--on-contrast-brand); outline-offset: 3px; }
.how-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .how-link svg { scale: -1 1; }
.steps { margin: 0; padding: 0; list-style: none; }
.steps li { padding: 20px 0; display: grid; grid-template-columns: 56px 1fr; gap: 0 4px; border-top: 1px solid var(--contrast-line); }
.steps li > span { color: var(--on-contrast-brand); font-size: 11px; }
.steps b { display: flex; align-items: center; gap: 10px; font-family: var(--font-latin); font-size: 20px; }
.steps b svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--on-contrast-brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.steps p { margin: 5px 0 0; color: var(--on-contrast-faint); line-height: 1.6; }
@media (max-width: 640px) { .steps li { grid-template-columns: 34px 1fr; } .steps b { font-size: 19px; } }
.steps .how-tag { display: inline-block; margin-top: 10px; padding: 4px 11px; border: 1px solid var(--contrast-line); border-radius: 999px; font-style: normal; font-size: 12px; font-weight: 600; color: var(--on-contrast-soft); }

/* Footer: static markup, no JS work. Hover/focus are colour + underline only
   (no layout-affecting transitions) so it paints once and stays cheap. */
.site-footer { padding-top: 64px; padding-bottom: 28px; display: grid; grid-template-columns: minmax(0,1.6fr) repeat(3,minmax(0,1fr)); gap: 40px 48px; background: var(--contrast-2); color: var(--on-contrast); }
.site-footer a { color: var(--on-contrast-soft); text-decoration: none; transition: color .12s ease; }
.site-footer a:hover { color: var(--on-contrast); text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: 4px; }
.site-footer a:focus-visible { outline: 2px solid var(--on-contrast-brand); outline-offset: 3px; border-radius: 4px; }
.brand.inverse .brand-mark { background: var(--brand); color: var(--on-brand); }
.brand.inverse .brand-copy small { color: var(--on-contrast-faint); }
.footer-brand p { max-width: 380px; margin: 18px 0 0; color: var(--on-contrast-soft); font-size: 15px; line-height: 1.6; }
.footer-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.site-footer .footer-cta-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1px solid var(--contrast-line); border-radius: 999px; background: var(--contrast-fill); color: var(--on-contrast); font-size: 14px; font-weight: 600; transition: background-color .12s ease, border-color .12s ease; }
.site-footer .footer-cta-btn:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.28); text-decoration: none; }
.site-footer .footer-cta-btn.is-whatsapp { background: #177a42; border-color: #177a42; color: #fff; }
.site-footer .footer-cta-btn.is-whatsapp:hover { background: #12663a; border-color: #12663a; }
.footer-cta-btn svg { width: 18px; height: 18px; flex: none; }
.footer-col { display: grid; align-content: start; gap: 12px; font-size: 14px; }
.footer-col b { margin-bottom: 4px; color: var(--on-contrast-brand); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
html[lang="ar"] .footer-col b { letter-spacing: 0; font-size: 14px; }
.footer-col a { justify-self: start; }
.footer-seo { grid-column: 1/-1; display: grid; gap: 28px; padding-top: 32px; border-top: 1px solid var(--contrast-line); }
.footer-seo-group b { display: block; margin-bottom: 14px; color: var(--on-contrast-brand); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.footer-seo-group[lang="ar"] b { letter-spacing: 0; font-size: 14px; }
.footer-seo ul { margin: 0; padding: 0; list-style: none; columns: 4 200px; column-gap: 32px; }
.site-footer .footer-col a, .site-footer .footer-seo a { display: inline-flex; align-items: center; min-inline-size: 44px; min-block-size: 44px; }
.footer-seo li { break-inside: avoid; padding: 4px 0; font-size: 13px; line-height: 1.4; }
.site-footer .footer-seo a { color: var(--on-contrast-faint); }
.site-footer .footer-seo a:hover { color: var(--on-contrast); }
html[lang="ar"] .footer-seo-group[lang="ar"] { order: -1; }
/* The Arabic list belongs to the Arabic site; the English page shows only the English one. */
html:not([lang="ar"]) .footer-seo-group[lang="ar"] { display: none; }
.footer-bottom { grid-column: 1/-1; display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 24px; border-top: 1px solid var(--contrast-line); }
.footer-note { color: var(--on-contrast-faint); line-height: 1.5; }
.site-footer .footer-top-link { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.footer-top-link::after { content: "\2191"; }

.compare-tray { position: fixed; z-index: 70; left: 50%; bottom: 20px; width: min(700px,calc(100% - 32px)); transform: translateX(-50%); padding: 11px 12px 11px 16px; border: 1px solid var(--contrast-line); border-radius: 18px; background: var(--contrast-2); color: var(--on-contrast); display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.compare-tray > div { display: flex; align-items: center; gap: 12px; min-width: 0; }
.compare-copy { display: grid; gap: 3px; min-width: 0; }
.compare-copy b { font-size: 15px; }
.compare-tray small { color: var(--on-contrast-soft); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compare-thumbs { display: flex; flex: none; padding-inline-start: 8px; }
.compare-thumbs i { width: 38px; height: 38px; margin-inline-start: -8px; border-radius: 50%; border: 2px solid var(--contrast-2); background-color: var(--contrast-fill); background-size: cover; background-position: center; }
.compare-thumbs i.is-empty { display: grid; place-items: center; border: 1.5px dashed var(--contrast-line); background: var(--contrast-2); color: var(--on-contrast-faint); font-style: normal; font-size: 16px; line-height: 1; }
.compare-tray .compare-actions { flex: none; gap: 6px; }
.compare-clear { min-height: 40px; padding: 0 12px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--on-contrast-soft); display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; cursor: pointer; }
.compare-clear svg { width: 14px; height: 14px; }
.compare-clear:hover, .compare-clear:focus-visible { border-color: var(--contrast-line); background: var(--contrast-fill); color: var(--on-contrast); }
.compare-tray #open-compare:disabled { background: transparent; color: var(--on-contrast-soft); border: 1px dashed var(--contrast-line); cursor: default; }
.compare-tray #open-compare:disabled:hover { transform: none; background: transparent; }
.dialog-head-actions { display: flex; align-items: center; gap: 8px; }
.compare-clear-dialog { color: var(--muted); }
.compare-clear-dialog:hover, .compare-clear-dialog:focus-visible { border-color: var(--line); background: var(--surface-inset); color: var(--danger); }
dialog { border: 0; padding: 0; }
dialog::backdrop { background: var(--overlay); }
.compare-dialog { width: min(1180px,calc(100% - 28px)); max-height: 88vh; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); color: var(--ink); }
.dialog-head { padding: 25px 28px; display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--line); }
.dialog-head h2 { margin-top: 8px; font-size: 30px; }
.icon-button { width: 42px; height: 42px; border-radius: 50%; }
.icon-button:hover { background: var(--surface-inset); }
.compare-table-wrap { padding: 24px 28px 30px; overflow: auto; }
.compare-table { width: 100%; min-width: 740px; border-collapse: collapse; text-align: left; }
.compare-table th, .compare-table td { padding: 13px 15px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare-table th { width: 150px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.compare-table td { font-size: 13px; }
.compare-unit-head { min-width: 180px; }
.compare-unit-head img { width: 100%; height: 100px; object-fit: cover; border-radius: 10px; margin-bottom: 10px; }
.compare-unit-head b { font-family: var(--font-latin); font-size: 17px; }
.remove-compare { margin-top: 6px; border: 0; background: transparent; color: var(--danger); padding: 0; font-size: 11px; cursor: pointer; }

.assistant-launcher { position: fixed; z-index: 65; inset-inline-end: 22px; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); min-height: 62px; padding-block: 8px; padding-inline: 8px 18px; border: 1px solid color-mix(in srgb,var(--on-contrast) 18%,transparent); border-radius: 999px; background: var(--contrast); color: var(--on-contrast); display: flex; align-items: center; gap: 11px; cursor: pointer; transition: transform .18s ease,border-color .18s ease; }
.assistant-launcher:hover { transform: translateY(-2px); border-color: color-mix(in srgb,var(--brand) 60%,transparent); }
.assistant-launcher:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.compare-tray:not([hidden]) ~ .assistant-launcher { bottom: 100px; }
.assistant-pulse { position: relative; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: var(--on-brand); }
.assistant-pulse::after { content: ""; position: absolute; inset-inline-end: 1px; bottom: 1px; width: 10px; height: 10px; border: 2px solid var(--kw-charcoal); border-radius: 50%; background: #fff; }
.assistant-launcher > span:last-child { display: grid; gap: 2px; text-align: start; white-space: nowrap; }
.assistant-launcher small { color: var(--on-contrast-soft); font-size: 10px; letter-spacing: .01em; }
.recommendation-editing .assistant-launcher { opacity: 0; pointer-events: none; transform: translateY(12px); }
/* One floating launcher (owner fix 2026-11-08): the KW RED chat button at the inline-end bottom corner opens
   the chat, and the call starts inside it. Its name and status show on desktop only; below 1024px it is the
   round button alone, and it steps aside while the cookie choice is open so it never covers the banner. */
@media (max-width: 1023px) {
  .assistant-launcher { min-height: 0; padding: 8px; }
  .assistant-launcher > span:last-child { display: none; }
  body:has(#kwred-consent-banner:not([hidden])) .assistant-launcher { visibility: hidden; pointer-events: none; }
}
/* Room under the last footer line so the launcher never covers it. */
body:has(#assistant-launcher) .kwred-legal { padding-block-end: calc(104px + env(safe-area-inset-bottom, 0px)); }
.assistant-panel { position: fixed; z-index: 90; right: 22px; bottom: 22px; width: min(390px,calc(100% - 24px)); height: min(620px,calc(100vh - 40px)); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: var(--paper); color: var(--ink); grid-template-rows: auto 1fr auto auto; }
.assistant-panel:not([hidden]) { display: grid; grid-template-rows: auto minmax(0,1fr) auto auto auto; }
.assistant-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.assistant-actions button { flex: 1 1 140px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-inset); color: var(--ink); font-size: 12px; font-weight: 700; cursor: pointer; }
.assistant-actions [data-contact-request] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.assistant-head { padding: 15px 16px; display: flex; align-items: center; justify-content: space-between; background: var(--contrast); color: var(--on-contrast); border-bottom: 1px solid color-mix(in srgb,var(--on-contrast) 12%,transparent); }
.assistant-head > div { display: flex; align-items: center; gap: 9px; }
.assistant-head > div:first-child > span:last-child { display: grid; gap: 3px; }
.assistant-head small { color: var(--on-contrast-soft); font-size: 10px; }
.assistant-head small i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.assistant-avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: var(--on-brand); }
.assistant-head .icon-button { color: var(--on-contrast); }
.assistant-messages { padding: 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 11px; background: var(--surface-2); }
.message { max-width: 86%; padding: 11px 13px; border-radius: 15px; font-size: 13px; line-height: 1.5; }
.assistant-message { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.assistant-message { white-space: pre-line; }
.assistant-typing { display: inline-flex; gap: 5px; align-items: center; padding: 14px 15px; }
.assistant-typing-label { margin-inline-start: 6px; font-style: normal; font-size: 12px; font-weight: 600; color: var(--muted); }
.assistant-typing-label:empty { display: none; }
.assistant-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .45; animation: assistant-typing 1.1s infinite ease-in-out; }
.assistant-typing span:nth-child(2) { animation-delay: .16s; }
.assistant-typing span:nth-child(3) { animation-delay: .32s; }
@keyframes assistant-typing { 0%, 70%, 100% { transform: translateY(0); opacity: .35; } 35% { transform: translateY(-4px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .assistant-typing span { animation: none; opacity: .7; } }
/* Choose your advisor (43-assistant-picker.js)
   Each advisor has its own colour (set from the voice profile's presentation) that
   follows the choice through the header avatar, launcher, cards and voice dialog. */
/* KW palette only: Salma (and the neutral profile) on KW Red, Karim on the dark surface, as on the phone call screen. */
:root, :root[data-advisor="feminine"], .advisor-option[data-presentation="feminine"], .advisor-option[data-presentation="neutral"] { --adv-1: var(--kw-red); --adv-2: var(--kw-red); }
:root[data-advisor="masculine"], .advisor-option[data-presentation="masculine"] { --adv-1: var(--kw-surface-dark); --adv-2: var(--kw-charcoal); }
/* The floating launcher (.assistant-pulse) always shows the KW RED chat glyph; the advisor's initial and portrait show in the chat header. */
.assistant-avatar[data-initial] { background: var(--adv-1); font-weight: 800; font-size: 19px; line-height: 1; }
.assistant-avatar[data-initial] > svg { display: none; }
.assistant-avatar[data-initial]::before { content: attr(data-initial); }
/* Karim's dark disc sits on the dark chat header: a white ring keeps it visible (initial and portrait). */
:root[data-advisor="masculine"] .assistant-head .assistant-avatar { outline: 2px solid #fff; outline-offset: 0; }
.adv-pop { animation: adv-pop .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes adv-pop { 0% { transform: scale(.72); } 100% { transform: scale(1); } }
.assistant-head > div:first-child > span:last-child { position: relative; }
.assistant-namerow { display: flex; align-items: center; gap: 8px; }
.assistant-switch { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 0 10px 0 8px; border: 1px solid rgb(255 255 255 / .22); border-radius: 999px; background: rgb(255 255 255 / .1); color: inherit; font: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer; transition: background .15s, border-color .15s; }
.assistant-switch svg { width: 13px; height: 13px; flex: none; }
.assistant-switch:hover, .assistant-switch[aria-expanded="true"] { background: rgb(255 255 255 / .22); border-color: rgb(255 255 255 / .4); }
.assistant-switch:focus-visible, .advisor-option:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.advisor-menu { position: absolute; z-index: 20; top: 72px; inset-inline: 12px; display: grid; gap: 6px; padding: 12px; border: 1px solid var(--line-strong, var(--line)); border-radius: 18px; background: var(--paper); color: var(--ink); animation: assistant-rise .18s ease-out; }
.advisor-menu[hidden] { display: none; }
.advisor-menu p { margin: 0 2px 2px; font-size: 12px; font-weight: 800; letter-spacing: .02em; color: var(--muted); }
.advisor-hint { margin: 2px 2px 0; font-size: 11.5px; line-height: 1.4; color: var(--muted); }
.advisor-option { position: relative; display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 12px; border: 1.5px solid var(--line-strong, var(--line)); border-radius: 14px; background: var(--paper); color: inherit; font: inherit; text-align: start; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.advisor-option:hover:not(:disabled) { border-color: var(--adv-2); background: color-mix(in srgb, var(--adv-2) 7%, var(--paper)); }
.advisor-option:active:not(:disabled) { transform: scale(.985); }
.advisor-option.is-on { border-color: var(--adv-2); background: color-mix(in srgb, var(--adv-2) 11%, var(--paper)); }
.advisor-option:disabled { opacity: .5; cursor: not-allowed; }
.advisor-initial { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--adv-1); color: #fff; font-size: 18px; font-weight: 800; }
.advisor-copy { display: grid; gap: 2px; min-width: 0; flex: 1; }
.advisor-copy b { font-size: 14.5px; line-height: 1.2; }
.advisor-copy small { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.advisor-state { flex: none; font-size: 10.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--adv-2); }
.advisor-state:not(:empty)::before { content: "✓ "; }
.advisor-inline { display: grid; gap: 7px; }
.advisor-inline-label { font-size: 12px; font-weight: 800; letter-spacing: .02em; color: var(--muted); }
.advisor-inline > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.advisor-inline .advisor-option { padding: 9px 10px; gap: 9px; }
.advisor-inline .advisor-initial { flex-basis: 34px; width: 34px; height: 34px; font-size: 15px; }
.advisor-inline .advisor-state { position: absolute; top: 6px; inset-inline-end: 8px; font-size: 9.5px; }
.advisor-inline-voice { margin: 8px 16px 0; }
.advisor-inline-voice[hidden] { display: none; }
.advisor-inline-voice .advisor-inline-label, .advisor-inline-voice .advisor-copy small { color: var(--on-contrast-soft, var(--muted)); }
.advisor-inline-voice .advisor-option { background: rgb(255 255 255 / .06); color: inherit; border-color: rgb(255 255 255 / .18); }
.advisor-inline-voice .advisor-option:hover:not(:disabled) { background: rgb(255 255 255 / .12); }
.advisor-inline-voice .advisor-option.is-on { border-color: #fff; background: color-mix(in srgb, var(--adv-1) 28%, transparent); }
.advisor-inline-voice .advisor-state { color: #fff; }
.advisor-lock-note { display: flex; align-items: center; gap: 6px; font-size: 11.5px; line-height: 1.4; color: var(--on-contrast-soft, var(--muted)); }
.advisor-lock-note::before { content: "🔒"; font-size: 11px; }
.advisor-lock-note[hidden] { display: none; }
.assistant-switch-note { align-self: center; padding: 5px 13px; border-radius: 999px; background: var(--surface-inset, rgb(128 128 128 / .15)); font-size: 11.5px; font-weight: 700; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .adv-pop, .advisor-menu { animation: none; } .advisor-option { transition: none; } }

/* Save heart on chat unit cards, stop state of the send button */
.chat-card-save { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 2; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--kw-charcoal); color: #fff; cursor: pointer; transition: transform .15s, background .15s; }
.chat-card-save:hover { transform: scale(1.08); background: var(--kw-charcoal); }
.chat-card-save svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.chat-card-save.active { background: var(--brand); }
.chat-card-save.active svg { fill: currentColor; }
.chat-card-save:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.assistant-composer.is-busy .assistant-send { opacity: 1 !important; background: var(--ink, #222); color: var(--paper); }
.assistant-composer.is-busy .assistant-send svg { display: none; }
.assistant-composer.is-busy .assistant-send::before { content: ""; width: 14px; height: 14px; border-radius: 3px; background: currentColor; }
.assistant-composer.is-busy .assistant-send { cursor: pointer; }

/* Compare in chat: pick buttons, bar and side-by-side table */
.chat-card-pick[aria-pressed="true"] { background: color-mix(in srgb, var(--brand) 14%, var(--paper)); border-color: var(--brand); color: var(--brand); }
.chat-card-pick[aria-pressed="true"]::before { content: "✓"; margin-inline-end: 5px; font-weight: 800; }
.chat-compare-bar { position: sticky; bottom: 0; z-index: 3; display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 8px 10px; margin-top: auto; border: 1px solid var(--line-strong, var(--line)); border-radius: 999px; background: var(--paper); }
.chat-compare-bar > span { font-size: 12.5px; font-weight: 700; padding-inline-start: 6px; }
.assistant-cards .chat-card-compare { flex: 0 0 100%; align-self: flex-start; }
.chat-compare-scroll { overflow-x: auto; }
.chat-card-compare table { width: 100%; border-collapse: collapse; font-size: 12px; }
.chat-card-compare caption { text-align: start; padding: 10px 12px 4px; font-size: 13px; font-weight: 800; }
.chat-card-compare th, .chat-card-compare td { padding: 7px 10px; border-top: 1px solid var(--line); text-align: start; vertical-align: top; }
.chat-card-compare thead th { border-top: 0; font-size: 12.5px; line-height: 1.25; min-width: 96px; }
.chat-card-compare thead th small { display: block; color: var(--muted); font-weight: 700; font-size: 10.5px; }
.chat-card-compare tbody th { color: var(--muted); font-weight: 700; white-space: nowrap; position: sticky; inset-inline-start: 0; background: var(--paper); }
.chat-card-compare td { font-weight: 700; }
.chat-card-compare td.is-best { color: #1c9b6c; background: color-mix(in srgb, #43c898 12%, transparent); }
.chat-compare-note { margin: 0; padding: 8px 12px 10px; font-size: 11px; color: var(--muted); display: flex; gap: 6px; align-items: flex-start; }
.assistant-source { align-self: flex-start; margin: 0; padding: 0 4px; font-size: 11px; line-height: 1.4; color: var(--muted); }
.chat-compare-dot { flex: 0 0 8px; width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: #43c898; }

/* Catalogue cards under the advisor's reply (40-chat-cards.js) */
.assistant-cards { flex: 0 0 auto; align-self: stretch; display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 10px; margin-inline: -4px; scroll-snap-type: x proximity; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.chat-card { flex: 0 0 min(232px, 78%); scroll-snap-align: start; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.chat-card-media { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.chat-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chat-card-media.is-empty { background: var(--brand); }
.chat-card-glyph { position: absolute; inset: 0; display: none; place-items: center; font: 800 34px/1 var(--font-display, inherit); color: var(--on-brand); opacity: .85; }
.chat-card-media.is-empty .chat-card-glyph { display: grid; }
.chat-card-logo { aspect-ratio: 16 / 7; background: #fff; display: grid; place-items: center; padding: 10px; }
.chat-card-logo img { object-fit: contain; }
.chat-card-logo.is-empty { background: var(--brand); }
.chat-card-cover { position: absolute; inset: 0; }
.chat-card-badge { position: absolute; top: 8px; inset-inline-start: 8px; padding: 3px 9px; border-radius: 999px; background: var(--kw-charcoal); color: #fff; font-size: 11px; font-weight: 700; }
.chat-card-body { display: grid; gap: 4px; padding: 11px 12px 12px; flex: 1; align-content: start; }
.chat-card-kicker { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.chat-card-body h4 { margin: 0; font-size: 14.5px; line-height: 1.3; }
.chat-card-sub { margin: 0; font-size: 12px; color: var(--muted); }
.chat-card-price { margin: 2px 0 0; font-size: 16px; font-weight: 800; color: var(--brand); }
.chat-card-price small { font-size: 11px; font-weight: 600; color: var(--muted); margin-inline-end: 3px; }
.chat-card-specs { display: flex; flex-wrap: wrap; gap: 5px; margin: 2px 0 0; }
.chat-card-specs span { padding: 2px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 11.5px; font-weight: 600; }
.chat-card-terms { margin: 0; font-size: 12px; font-weight: 600; }
.chat-card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chat-card-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong, var(--line)); background: var(--paper); color: inherit; font: inherit; font-size: 12.5px; font-weight: 700; text-decoration: none; cursor: pointer; }
.chat-card-btn:hover { border-color: var(--brand); color: var(--brand); }
.chat-card-btn-primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.chat-card-btn-primary:hover { color: var(--on-brand); filter: brightness(1.08); }
.chat-card-btn:focus-visible, .chat-card-cover:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---- Chat panel and live-voice entry (41-chat-ux.js) ---- */
.assistant-suggestions[hidden] { display: none; }
@media (min-width: 821px) { .assistant-panel { width: min(420px, calc(100% - 24px)); height: min(720px, calc(100vh - 40px)); } }
.assistant-messages { scroll-behavior: smooth; gap: 12px; }
.message { max-width: 90%; animation: assistant-rise .22s ease-out both; }
@keyframes assistant-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .message { animation: none; } .assistant-messages { scroll-behavior: auto; } }
.assistant-welcome { display: grid; gap: 10px; }
.assistant-voice-card { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; padding: 13px; border: 1px solid color-mix(in srgb, var(--brand) 38%, var(--line)); border-radius: 16px; background: var(--paper); }
.assistant-voice-icon { grid-row: 1 / span 2; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: var(--on-brand); outline: 5px solid var(--brand); }
.assistant-voice-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.assistant-voice-copy { display: grid; gap: 2px; min-width: 0; }
.assistant-voice-copy b { font-size: 13.5px; line-height: 1.3; }
.assistant-voice-copy small { font-size: 12px; color: var(--muted); line-height: 1.4; }
.assistant-voice-start { grid-column: 1 / -1; margin-top: 8px; min-height: 40px; border: 0; border-radius: 999px; background: var(--brand); color: var(--on-brand); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.assistant-voice-start:hover { filter: brightness(1.08); }
.assistant-voice-start:focus-visible, .assistant-mic:focus-visible, .assistant-quick button:focus-visible, .assistant-starters button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.assistant-starter-label { margin: 4px 0 0; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.assistant-starters, .assistant-quick { display: flex; flex-wrap: wrap; gap: 7px; }
.assistant-starters button, .assistant-quick button { border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 12px; background: var(--paper); color: var(--brand); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; text-align: start; line-height: 1.3; transition: background .15s, border-color .15s; }
.assistant-starters button:hover, .assistant-quick button:hover { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, var(--paper)); }
.assistant-quick { animation: assistant-rise .25s ease-out both; }
.assistant-actions { gap: 6px; padding: 7px 12px; }
.assistant-actions button { flex: 1 1 0; min-height: 36px; padding: 6px 10px; border-radius: 999px; font-size: 12px; }
.assistant-composer.has-mic { grid-template-columns: 1fr 42px 42px; }
.assistant-mic { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--paper); color: var(--brand); cursor: pointer; transition: background .15s, border-color .15s; }
.assistant-mic:hover { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, var(--paper)); }
.assistant-mic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.assistant-disclaimer { padding: 0 13px 8px; line-height: 1.4; }
.assistant-composer textarea::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* live voice dialog */
.voice-persona { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--on-contrast-soft, var(--muted)); text-align: center; }
.voice-try-label { display: block; margin: 2px 0 6px; text-align: center; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; color: var(--on-contrast-soft, var(--muted)); }
.voice-privacy { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; padding: 10px 12px; border: 1px solid color-mix(in srgb, #43c898 40%, transparent); border-radius: 12px; background: color-mix(in srgb, #43c898 9%, transparent); font-size: 12px; line-height: 1.45; color: inherit; }
.voice-privacy svg { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 1px; fill: none; stroke: #43c898; stroke-width: 2; }

.user-message { align-self: flex-end; background: var(--brand); color: var(--on-brand); border-bottom-right-radius: 4px; }
.assistant-suggestions { display: flex; flex-wrap: wrap; gap: 6px; }
.assistant-suggestions button { border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 10px; background: transparent; color: var(--brand-ink); font-size: 10px; cursor: pointer; }
.assistant-composer { padding: 10px; display: grid; grid-template-columns: 1fr 42px; gap: 8px; border-top: 1px solid var(--line); }
.assistant-composer textarea { width: 100%; max-height: 90px; resize: none; border: 0; outline: 0; padding: 10px; background: transparent; color: var(--ink); font-size: 13px; }
.assistant-composer { align-items: end; }
.assistant-composer .assistant-send { width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--brand); color: var(--on-brand); cursor: pointer; transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease, opacity .15s ease; }
.assistant-composer .assistant-send svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.assistant-composer .assistant-send:hover { background: var(--brand-fill-hover); transform: translateY(-1px); }
.assistant-composer .assistant-send:active { background: var(--brand-press); transform: scale(.94); }
.assistant-composer .assistant-send:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.assistant-composer.is-empty .assistant-send { opacity: .45; transform: none; cursor: default; }
@media (prefers-reduced-motion: reduce) { .assistant-composer .assistant-send { transition: none; } }
.assistant-disclaimer { margin: 0; padding: 0 13px 10px; color: var(--muted); font-size: 8px; text-align: center; }
.voice-dialog { position: relative; width: min(480px,calc(100% - 24px)); min-height: 540px; max-height: calc(100vh - 36px); overflow-y: auto; padding: 26px 28px 32px; border-radius: 28px; background: var(--red-900); color: var(--on-contrast); text-align: center; border: 1px solid var(--line); }
.voice-dialog-top { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 8px; }
.voice-model-pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--on-contrast-soft); text-transform: uppercase; }
.voice-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.voice-minimize { position: static; color: var(--on-contrast); margin-inline-start: auto; }
.voice-hero { transition: all .35s var(--ease); }
.voice-dialog h2 { margin: 10px 0 18px; font-size: 38px; line-height: 1.05; transition: all .35s var(--ease); }
.voice-orb { width: 160px; height: 160px; margin: 0 auto 18px; position: relative; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--kw-red) 14%, transparent); transition: all .35s var(--ease); }
.voice-orb span { position: absolute; inset: 16px; border: 1px solid rgba(239,90,92,.34); border-radius: 50%; }
.voice-orb span:nth-child(2) { inset: 32px; background: var(--red-500); }
.voice-orb svg { position: relative; z-index: 2; width: 34px; height: 34px; color: var(--on-brand); }
.voice-dialog.previewing .voice-orb { animation: breathe 1.8s ease-in-out infinite; }
.voice-dialog[data-voice-state="muted"] .voice-orb, .voice-dialog[data-voice-state="error"] .voice-orb { filter: grayscale(.75); opacity: .72; animation: none; }

/* Dynamic hero collapse when active/connected */
.voice-dialog:not([data-voice-state="idle"]):not([data-voice-state="ended"]):not([data-voice-state="error"]) .voice-hero h2 { font-size: 20px; margin: 4px 0 8px; }
.voice-dialog:not([data-voice-state="idle"]):not([data-voice-state="ended"]):not([data-voice-state="error"]) .voice-orb { width: 78px; height: 78px; margin-bottom: 10px; }
.voice-dialog:not([data-voice-state="idle"]):not([data-voice-state="ended"]):not([data-voice-state="error"]) .voice-orb svg { width: 22px; height: 22px; }
.voice-dialog:not([data-voice-state="idle"]):not([data-voice-state="ended"]):not([data-voice-state="error"]) .voice-orb span { inset: 6px; }
.voice-dialog:not([data-voice-state="idle"]):not([data-voice-state="ended"]):not([data-voice-state="error"]) .voice-orb span:nth-child(2) { inset: 14px; }

/* Real-time acoustic visualizer */
.voice-visualizer { display: flex; align-items: center; justify-content: center; gap: 5px; height: 26px; margin: 8px auto 4px; }
.voice-visualizer .vbar { width: 4px; height: 6px; min-height: 4px; max-height: 26px; border-radius: 3px; background: var(--brand); transition: height .06s ease; }
.voice-visualizer[data-speaking="user"] .vbar { background: var(--success); }
.voice-visualizer[data-speaking="assistant"] .vbar { background: var(--brand); }

/* Tool execution status indicator */
.voice-tool-indicator { display: inline-flex; align-items: center; gap: 8px; margin: 6px auto; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: 11px; font-weight: 500; color: var(--on-contrast); max-width: 92%; }
.voice-tool-indicator[hidden] { display: none; }
.voice-tool-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); animation: pulse 1.2s ease-in-out infinite; }
.voice-tool-indicator[data-status="done"] .voice-tool-dot { background: var(--success); animation: none; }

/* Multi-turn transcript feed */
.voice-transcript-feed { display: flex; flex-direction: column; gap: 8px; max-height: 150px; overflow-y: auto; padding: 6px 2px; margin: 8px 0 4px; text-align: start; scroll-behavior: smooth; }
.voice-transcript-feed[hidden] { display: none; }
.voice-turn { display: flex; flex-direction: column; gap: 2px; max-width: 88%; padding: 7px 11px; border-radius: 14px; font-size: 12px; line-height: 1.45; unicode-bidi: plaintext; }
.voice-turn-user { align-self: flex-end; background: rgba(255,255,255,.14); border-bottom-right-radius: 4px; color: #fff; text-align: right; }
[dir="rtl"] .voice-turn-user { align-self: flex-start; border-bottom-right-radius: 14px; border-bottom-left-radius: 4px; text-align: left; }
.voice-turn-assistant { align-self: flex-start; background: color-mix(in srgb, var(--kw-red) 24%, transparent); border: 1px solid rgba(239,90,92,.28); border-bottom-left-radius: 4px; color: var(--on-contrast); }
[dir="rtl"] .voice-turn-assistant { align-self: flex-end; border-bottom-left-radius: 14px; border-bottom-right-radius: 4px; }
.voice-turn-speaker { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; opacity: .75; }
.voice-turn-text { font-size: 12px; word-break: break-word; }

/* Suggested prompt chips */
.voice-suggestions { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 8px 0 4px; }
.voice-suggestions[hidden] { display: none; }
.voice-chip { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); color: var(--on-contrast-soft); font-size: 11px; font-weight: 500; padding: 5px 11px; border-radius: 999px; cursor: pointer; transition: all .15s ease; text-align: center; }
.voice-chip:hover { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.28); transform: translateY(-1px); }

.voice-dialog > p { margin: 0 0 7px; font-weight: 700; }
.voice-dialog > small { display: block; color: var(--on-contrast-soft); line-height: 1.5; }
.voice-captions { display: grid; gap: 7px; margin-top: 14px; text-align: left; }
.voice-captions p { margin: 0; padding: 9px 11px; border-radius: 12px; background: var(--contrast-fill); line-height: 1.35; }
.voice-captions b { display: block; margin-bottom: 2px; color: var(--on-contrast-brand); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.voice-captions span { display: block; max-height: 100px; overflow-y: auto; font-size: 13px; line-height: 1.6; text-align: start; unicode-bidi: plaintext; overflow-wrap: anywhere; }
.voice-captions span[lang="ar"] { font-family: var(--font-arabic), sans-serif; }
#voice-knowledge-status { margin-top: 10px; }
.voice-actions { margin-top: 20px; display: grid; gap: 8px; }
.voice-session-timer { box-sizing: border-box; width: min(100%, 360px); margin: 16px auto 0; align-self: center; text-align: start; }
.voice-session-timer[hidden] { display: none; }
.voice-session-timer-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; font-size: 11px; color: var(--on-contrast-soft); }
.voice-session-timer-time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--on-contrast); }
.voice-session-timer-track { position: relative; height: 4px; border-radius: 999px; background: var(--contrast-line); overflow: hidden; }
.voice-session-timer-fill { position: absolute; inset: 0; background: var(--on-contrast); border-radius: inherit; transform-origin: left center; transition: transform 1s linear; }
[dir="rtl"] .voice-session-timer-fill { transform-origin: right center; }
.voice-session-timer.is-warning .voice-session-timer-time { color: var(--on-contrast-brand); }
.voice-session-timer.is-warning .voice-session-timer-fill { background: var(--on-contrast-brand); }
@media (prefers-reduced-motion: reduce) { .voice-session-timer-fill { transition: none; } }
.voice-actions button { min-height: 46px; border-radius: 999px; cursor: pointer; }
.voice-demo { border: 0; background: var(--brand); color: var(--on-brand); font-weight: 800; }
.voice-demo svg { vertical-align: middle; margin-right: 5px; }
.voice-mute { border: 1px solid var(--on-media-line-strong); background: var(--contrast-fill); color: var(--on-contrast); font-weight: 700; }
.voice-mute svg { vertical-align: middle; margin-right: 5px; }
.voice-end { border: 1px solid var(--on-media-line); background: transparent; color: var(--on-contrast); }

/* Switch to text chat button */
.voice-switch-chat { display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: transparent; border: 1px solid rgba(255,255,255,.18); color: var(--on-contrast-soft); font-size: 12px; font-weight: 600; padding: 7px 14px; border-radius: 999px; margin-top: 4px; cursor: pointer; transition: all .18s ease; }
.voice-switch-chat:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.3); }
.voice-switch-chat svg { width: 14px; height: 14px; }
.voice-switch-chat[hidden] { display: none; }
.voice-bubble { position: fixed; z-index: 92; right: 22px; bottom: 22px; max-width: min(330px,calc(100% - 24px)); min-height: 56px; padding: 9px 16px 9px 10px; border: 1px solid var(--contrast-line); border-radius: 999px; background: var(--contrast); color: var(--on-contrast); display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer; }
.voice-bubble[hidden] { display: none; }
.voice-bubble > span:last-child { display: grid; gap: 2px; overflow: hidden; }
.voice-bubble strong, .voice-bubble small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.voice-bubble small { color: var(--on-contrast-soft); font-size: 9px; }
.voice-bubble-dot { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; background: var(--brand); }
.toast { position: fixed; z-index: 120; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 12px 16px; border: 1px solid var(--contrast-line); border-radius: 12px; background: var(--contrast); color: var(--on-contrast); font-size: 12px; }
@keyframes breathe { 50% { transform: scale(1.035); filter: saturate(1.18); } }

[dir="rtl"] body { font-family: var(--font-arabic), var(--font-body), sans-serif; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4,
[dir="rtl"] .brand-copy, [dir="rtl"] button, [dir="rtl"] input, [dir="rtl"] select,
[dir="rtl"] textarea { font-family: var(--font-arabic), var(--font-heading), sans-serif; }
[dir="rtl"] .hero-copy, [dir="rtl"] .section-head, [dir="rtl"] .recommendation-intro,
[dir="rtl"] .feature-card, [dir="rtl"] .feature-panel{ text-align: right; }
[dir="rtl"] .text-link svg, [dir="rtl"] .search-submit svg { transform: scaleX(-1); }
[dir="rtl"] .market-list svg { transform: scaleX(-1); }
[dir="rtl"] .feature-project-controls button:first-child svg { transform: none; }
[dir="rtl"] .feature-project-controls button:last-child svg { transform: rotate(180deg); }
[dir="rtl"] .hero-status { left: auto; right: -36px; }
[dir="rtl"] .units-filter-panel { left: auto; right: 0; }
[dir="rtl"] .assistant-panel { right: auto; left: 22px; }
[dir="rtl"] .voice-bubble { right: auto; left: 22px; text-align: right; }
[dir="rtl"] .message.assistant-message { border-bottom-left-radius: 15px; border-bottom-right-radius: 4px; }
[dir="rtl"] .message.user-message { border-bottom-right-radius: 15px; border-bottom-left-radius: 4px; }

@media (max-width: 1120px) {
  .desktop-nav { gap: 14px; }
  .hero { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 56px; }
  .unit-grid { grid-template-columns: repeat(2,1fr); }
}

/* The full nav and primary header action no longer fit below 960px. */
@media (max-width: 960px) {
  .desktop-nav, .header-recommend { display: none; }
  .mobile-menu-toggle { display: inline-flex; }
}

@media (max-width: 820px) {
  :root { --header-h: 68px; }
  .desktop-nav, .header-recommend { display: none; }
  .mobile-menu-toggle { display: inline-flex; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 42px; padding-bottom: 32px; }
  .hero-copy { padding-bottom: 0; }
  .hero h1 { font-size: clamp(44px,10vw,64px); }
  .hero-visual { min-height: 480px; width: 78%; justify-self: end; }
  .search-dock { position: relative; inset: auto; margin-top: -76px; grid-template-columns: 1fr 1fr 58px; width: 94%; }
  .trust-strip { flex-wrap: wrap; justify-content: center; }
  .trust-strip > span { width: 100%; text-align: center; }
  .destination-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 220px 220px; grid-auto-rows: 220px; }
  .destination-card:first-child { grid-column: 1/-1; grid-row: auto; }
  .project-grid { grid-template-columns: repeat(2,1fr); }
  .recommendation-section, .split-feature, .how-section { grid-template-columns: 1fr; }
  .feature-card { min-height: 560px; }
  .market-shortlist { min-height: auto; }
  .launch-grid, .match-grid { grid-template-columns: 1fr 1fr; }
  .site-footer { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .footer-brand { grid-column: 1/-1; }
}

@media (max-width: 560px) {
  .brand-copy { display: none; }
  .hero { gap: 28px; }
  .hero-copy > p { font-size: 15px; }
  .hero-proof { justify-content: space-between; }
  .hero-proof b { font-size: 18px; }
  .hero-proof span { font-size: 8px; }
  .hero-visual { min-height: 400px; width: 92%; border-radius: 180px 180px 18px 18px; }
  .hero-status { left: -26px; top: 50px; }
  .search-dock { width: 100%; margin-top: -50px; grid-template-columns: 1fr 54px; padding: 11px; border-radius: 17px; }
  .search-dock label { padding: 11px; }
  .search-dock label:nth-of-type(2), .search-dock label:nth-of-type(3) { grid-column: auto; }
  .search-dock label:nth-of-type(3) { border-right: 0; }
  .search-submit { grid-column: 2; grid-row: 2 / 4; }
  .trust-strip { display: none; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .section-head h2 { font-size: 38px; }
  .destination-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-right: -20px; padding-right: 20px; }
  .destination-card, .destination-card:first-child { min-width: 82vw; height: 370px; scroll-snap-align: start; }
  .project-grid { grid-template-columns: 1fr; }
  .unit-grid { grid-template-columns: 1fr; }
  .view-actions { justify-content: flex-start; }
  .result-summary { margin-top: 0; }
  .recommendation-section { padding-top: 76px; padding-bottom: 76px; }
  .recommendation-form { padding: 22px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .split-feature { padding-top: 76px; padding-bottom: 76px; }
  .feature-card { min-height: 450px; padding: 25px; }
  .feature-card h2 { font-size: 42px; }
  .feature-panel { padding: 25px; }
  .feature-card-top { align-items: flex-start; }
  .feature-project-controls { margin-top: -6px; }
  .market-list { grid-template-columns: 1fr; }
  .offer-list { grid-template-columns: 1fr; }
  .launch-grid, .match-grid { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr 1fr; gap: 32px 24px; padding-top: 48px; }
  .footer-brand { grid-column: 1/-1; }
  .footer-seo ul { columns: 2 140px; column-gap: 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .compare-tray { bottom: 10px; align-items: stretch; }
  .compare-thumbs { display: none; }
  .compare-tray { gap: 10px; padding: 10px; }
  .compare-copy b { font-size: 13px; }
  .compare-tray small { font-size: 11px; }
  .compare-tray .button { padding: 0 14px; font-size: 11px; }
  .compare-clear span { display: none; }
  .compare-tray .compare-clear { padding: 0 11px; }
  .assistant-launcher { inset-inline-end: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .assistant-launcher > span:last-child { display: none; }
  .compare-tray:not([hidden]) ~ .assistant-launcher { bottom: 84px; }
  .assistant-panel { inset: var(--header-h) 0 0; width: 100%; height: auto; max-height: none; border-radius: 0; }
  .voice-dialog { min-height: 520px; padding: 34px 24px; }
  .voice-dialog h2 { font-size: 36px; }
  .voice-orb { width: 150px; height: 150px; }
}

@media (max-width: 340px) {
  .section-pad { padding-left: 16px; padding-right: 16px; }
  .site-header { padding: 0 14px; }
  .hero h1 { font-size: 40px; }
  .hero-proof span { max-width: 72px; }
  .search-dock label { padding: 9px 7px; }
  .search-dock label > span { font-size: 8px; }
  .search-dock input, .search-dock select { font-size: 11px; }
  .destination-grid { margin-right: -16px; padding-right: 16px; }
  .compare-tray { width: calc(100% - 16px); }
}

/* Search-first mobile layout and shared input/navigation accessibility. */
.search-dock input:focus-visible, .search-dock select:focus-visible,
.assistant-composer textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.search-dock label:focus-within { background: var(--surface-inset); border-radius: 10px; }
.mobile-menu-toggle, .icon-button, .language-toggle, .filter-chip, .choice-row button { min-width: 44px; min-height: 44px; }
.desktop-nav > a, .nav-more { min-height: 44px; display: inline-flex; align-items: center; }
.mobile-nav { max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
.mobile-nav a { min-height: 48px; display: flex; align-items: center; overflow-wrap: anywhere; }
.more-menu { inset-inline-end: 0; right: auto; top: 48px; }
.assistant-messages { min-height: 0; overscroll-behavior: contain; }
.assistant-composer label { min-width: 0; }
.assistant-disclaimer { font-size: 10px; line-height: 1.5; }
@media (max-width: 820px) {
  /* Phones draw these at <=780px wide; 900px files instead of 1500-1600px.
     The hero URL must match the media="(max-width: 820px)" preload in index.html. */
  .hero-visual { background-image: url("https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?auto=format&fit=crop&w=900&q=70"); }
  .hero { gap: 24px; }
  .hero-copy { grid-row: 1; }
  .search-dock { grid-row: 2; width: 100%; margin: 0; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px; }
  .search-dock label { padding: 10px; border: 0; gap: 8px; }
  .search-dock label > span { font-size: 11px; letter-spacing: .025em; }
  .search-dock input, .search-dock select { min-height: 44px; font-size: 16px; }
  .search-submit { grid-column: 1 / -1; grid-row: auto; min-height: 48px; display: flex; justify-content: center; align-items: center; gap: 12px; font-weight: 800; }
  .search-submit span { display: inline; }
  .hero-visual { grid-row: 3; min-height: 260px; width: 100%; border-radius: 24px; margin-top: 8px; }
  .hero-caption b { font-size: 26px; }
  .hero-proof span { font-size: 10px; letter-spacing: 0; }
  .recommendation-form input, .recommendation-form select, .assistant-composer textarea,
  .contact-request input, .contact-request select, .contact-request textarea { font-size: 16px; }
}
@media (max-width: 560px) {
  .hero { padding-top: 28px; }
  .hero h1 { font-size: clamp(36px, 9vw, 46px); }
  .hero-copy > p { margin: 18px 0; }
  .hero-proof { gap: 12px; }
  .search-dock { gap: 4px; padding: 10px; }
  .search-dock label:nth-of-type(2), .search-dock label:nth-of-type(3) { grid-column: auto; }
  .assistant-panel { height: calc(100dvh - var(--header-h)); bottom: auto; }
  .assistant-composer { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .section-head h2 { font-size: clamp(29px, 8vw, 38px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.map-toggle,.map-toolbar button,.map-toolbar select,.nearby-card button{border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:8px;padding:10px 13px;font:inherit;cursor:pointer;min-height:42px}
.map-toggle{margin-bottom:18px;font-weight:700}.map-panel{padding:20px;border:1px solid var(--line);background:var(--bg);border-radius:16px;margin-bottom:28px;overflow:hidden}.map-toolbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.map-toolbar label{display:grid;gap:7px;max-width:100%;font-size:13px}.map-toolbar input{font:inherit;border:1px solid var(--line);border-radius:8px;padding:11px;width:270px;max-width:100%;box-sizing:border-box}.map-note,#map-status{font-size:13px;line-height:1.7;margin:14px 0}.map-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(260px,1fr);gap:20px}.map-layout>div{min-width:0}.estate-map{position:relative;height:470px;overflow:hidden;background:var(--surface-inset);border:1px solid var(--line);border-radius:12px;isolation:isolate}.map-tiles,.map-markers{position:absolute;inset:0}.map-tiles img{position:absolute;max-width:none!important;width:256px;height:256px;user-select:none}.map-pin{position:absolute;transform:translate(-50%,-50%);border:2px solid var(--paper);border-radius:18px;background:var(--brand);color:var(--on-brand);font:bold 12px sans-serif;padding:5px 8px;min-width:32px;min-height:32px;cursor:pointer;}.map-pin:hover,.map-pin:focus-visible,.map-pin.selected{background:var(--brand-press);z-index:2;outline:2px solid var(--ink)}.map-controls{position:absolute;left:10px;top:10px;display:grid;gap:4px;z-index:3}.map-controls button{width:40px;height:38px;border:1px solid var(--line-strong);background:var(--paper);border-radius:6px;font-size:20px;cursor:pointer;color:var(--ink)}.map-attribution{position:absolute;bottom:0;right:0;background:color-mix(in srgb,var(--paper) 92%,transparent);padding:4px 7px;font:11px/1.5 sans-serif;z-index:4;color:var(--muted)}.map-attribution a{text-decoration:underline}.nearby-results{max-height:535px;overflow-y:auto;scrollbar-gutter:stable;padding-inline-end:5px}.nearby-results h3{font-size:19px;margin:0 0 12px}.nearby-results p{font-size:13px;line-height:1.6}.nearby-card{padding:15px;background:var(--paper);border:1px solid var(--line);border-radius:12px;margin-bottom:12px}.nearby-card h4{margin:0;font-size:16px}.nearby-card a{color:var(--brand-ink);text-decoration:underline;text-underline-offset:3px}.nearby-card> a,.nearby-card button{font-size:12px}.nearby-card ul{padding-inline-start:18px}.nearby-card li{margin:10px 0;font-size:13px}.nearby-card small{display:block;margin-top:4px;line-height:1.6;color:var(--muted)}.map-panel button:focus-visible,.map-panel a:focus-visible,.map-toggle:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
@media(max-width:800px){.units-filter-bar{align-items:stretch}.units-filter-panel{grid-template-columns:1fr 1fr}.map-layout{grid-template-columns:minmax(0,1fr)}.estate-map{height:360px}.map-panel{padding:12px}.nearby-results{max-height:420px}.map-toolbar{gap:8px}.map-toolbar label{width:100%}.map-toolbar input{width:100%}.map-toolbar button{font-size:12px}.map-attribution{font-size:10px}}
.map-panel{background:var(--bg);border-color:var(--line);color:var(--ink)}
.map-toggle,.map-toolbar button,.map-toolbar select,.map-toolbar input,.nearby-card,.nearby-card button,#map-show-more{background:var(--paper);color:var(--ink);border-color:var(--line)}
.map-pin{width:150px;min-height:44px;display:grid;gap:2px;border-radius:12px;background:var(--brand);color:var(--on-brand);font:600 11px/1.3 var(--font-body),sans-serif;padding:6px 10px}
.map-pin-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:800}
.map-cluster{border-style:dashed}.map-pin.selected{background:var(--brand-press);outline-color:var(--ink)}
.nearby-card{overflow-wrap:anywhere}.nearby-card.selected{border:2px solid var(--brand)}.nearby-card:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.nearby-card .nearby-developer,.nearby-card small{color:var(--muted)}.nearby-card a{color:var(--brand-ink)}
.map-contact-actions{display:flex;flex-wrap:wrap;margin-top:12px}.map-contact-actions a,#map-show-more{display:inline-flex;justify-content:center;align-items:center;min-height:44px;padding:10px 14px;border-radius:10px;font-size:13px;font-weight:700;background:var(--brand);color:var(--on-brand);text-decoration:none}
.map-developer-logo{width:104px;height:40px;object-fit:contain;background:var(--gray-0);padding:5px;margin-bottom:12px}.map-facts{display:flex;flex-wrap:wrap;gap:6px}.map-facts span{padding:5px 8px;border:1px solid var(--line);border-radius:16px;font-size:12px}.developer-logo img{width:104px;height:40px;object-fit:contain}
.map-list-controls #map-show-more,.map-list-controls #map-show-less{width:auto;min-height:44px;margin:0;padding:10px 18px;background:var(--paper);color:var(--brand-ink);border:1px solid var(--line);border-radius:var(--r-sm);cursor:pointer}
.map-controls button { min-width: 44px; min-height: 44px; }
.contact-request input:not([type=checkbox]), .contact-request form select, .contact-request form textarea { font-size: 16px; min-height: 44px; }
.contact-request input[type=checkbox] { min-width: 20px; min-height: 20px; vertical-align: middle; }
.contact-request .contact-consent { min-height: 44px; }
.contact-request{width:min(480px,calc(100% - 24px));max-height:85dvh;overflow:auto;border:1px solid var(--line);border-radius:var(--r-md);padding:24px;background:var(--paper);color:var(--ink);}.contact-request::backdrop{background:var(--overlay)}.contact-request h2{font-size:23px}.contact-request label{display:grid;gap:6px;margin:12px 0;font-size:14px}.contact-request input,.contact-request textarea,.contact-request select{width:100%;padding:10px;border-radius:8px;border:1px solid var(--line);font:inherit;background:var(--paper);color:var(--ink)}.contact-request p{font-size:13px;line-height:1.8}.contact-request button{min-height:44px;border:0;padding:10px 16px;border-radius:9px;background:var(--brand);color:var(--on-brand);cursor:pointer}.contact-request [data-contact-close]{float:right;font-size:22px}.contact-request .contact-consent{display:block;line-height:1.8}.contact-request input[type=checkbox]{width:auto}.contact-request a{color:var(--brand-ink);display:inline-block;padding:10px}.contact-honeypot{position:absolute!important;left:-9999px;width:1px!important}
.place-icon{width:16px;height:16px;flex:none;color:var(--brand-ink)}
.map-places{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.map-places h3{display:flex;align-items:center;gap:8px;font-size:19px;margin:0 0 10px}
.map-places p{font-size:13px;line-height:1.7;margin:8px 0}
.place-categories{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:10px;margin:12px 0}
.place-categories a{display:flex;align-items:center;gap:9px;min-height:44px;padding:10px 13px;border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink);text-decoration:none;font:600 13px/1.4 var(--font-body),sans-serif}
.place-categories a span:first-of-type{flex:1}
.place-categories a:hover{border-color:var(--brand);color:var(--brand-ink)}
.map-fact-group{margin-top:10px;border:1px solid var(--line);border-radius:10px;background:var(--bg)}
.map-fact-group summary{display:flex;align-items:center;gap:8px;box-sizing:border-box;min-height:42px;padding:9px 11px;cursor:pointer;font-size:13px;font-weight:600;list-style:none}
.map-fact-group summary::-webkit-details-marker{display:none}
.map-fact-group summary::after{content:"\25be";margin-inline-start:auto;font-size:13px;line-height:1;color:var(--muted)}
.map-fact-group[open] summary::after{content:"\25b4"}
.map-fact-group summary b{color:var(--muted)}
.map-fact-group ul{margin:0;padding:0 11px 10px;list-style:none}
.map-fact-group li{display:flex;align-items:flex-start;gap:8px;margin:8px 0;font-size:13px;line-height:1.6}
.map-empty-facts{margin:10px 0 0;font-size:12px;color:var(--muted)}
@media(max-width:800px){.place-categories{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}}

/* ============================================================================
   Appearance control — light / dark / system
   A single trigger plus a menu rather than a three-up segment: the header
   already carries brand, language, CTA and the mobile menu button, and a
   segment wide enough for three labelled targets pushed the 320px layout into
   horizontal overflow. The menu also gives each mode a real label, which the
   Arabic dictionary can translate; an icon-only segment could not.
   ============================================================================ */
.theme-control { position: relative; display: inline-flex; }
.theme-trigger { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color var(--dur-2), background var(--dur-2); }
.theme-trigger:hover { border-color: var(--line-strong); background: var(--surface-inset); }
.theme-trigger svg { width: 20px; height: 20px; }
/* Only the glyph for the active mode is rendered; the other two stay in the
   DOM so the button never reflows while switching. */
.theme-trigger [data-theme-icon] { display: none; }
:root[data-theme-mode="light"] .theme-trigger [data-theme-icon="light"],
:root[data-theme-mode="dark"] .theme-trigger [data-theme-icon="dark"],
:root[data-theme-mode="system"] .theme-trigger [data-theme-icon="system"] { display: block; }
.theme-menu { position: absolute; inset-inline-end: 0; top: 52px; z-index: 60; display: grid; gap: 2px; min-width: 186px; padding: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.theme-menu[hidden] { display: none; }
.theme-menu-title { padding: 6px 10px 8px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: var(--tracking-caps); text-transform: uppercase; }
.theme-option { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 10px 11px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink); font-size: 13px; font-weight: 600; text-align: start; cursor: pointer; }
.theme-option:hover { background: var(--surface-inset); }
.theme-option svg { width: 18px; height: 18px; color: var(--muted); }
.theme-option[aria-checked="true"] { background: var(--brand-soft); color: var(--brand-soft-ink); font-weight: 700; }
.theme-option[aria-checked="true"] svg { color: var(--brand-ink); }
.theme-option-check { margin-inline-start: auto; opacity: 0; }
.theme-option[aria-checked="true"] .theme-option-check { opacity: 1; }
/* Backend switch: when the Control Center pins the published theme to one
   mode, the whole control is removed rather than shown-but-inert. */
.theme-control[hidden] { display: none; }
.mobile-nav .theme-control { grid-column: 1 / -1; }
.mobile-nav .theme-trigger { width: auto; min-height: 48px; padding: 0 16px; border-radius: var(--r-pill); gap: 9px; font-weight: 600; }
.mobile-nav .theme-menu { inset-inline: 0; }

::selection { background: var(--brand); color: var(--on-brand); }
/* Cross-fade the token swap so switching modes reads as one change of light
   rather than a hard repaint. Opt-in per property: a blanket transition on
   `all` would animate transforms and shadows mid-scroll. */
@media (prefers-reduced-motion: no-preference) {
  :root.theme-switching, :root.theme-switching body,
  :root.theme-switching .site-header,
  :root.theme-switching .feature-panel, :root.theme-switching .assistant-panel,
  :root.theme-switching .theme-menu, :root.theme-switching .theme-trigger,
  :root.theme-switching .search-dock, :root.theme-switching .recommendation-form {
    transition: background-color var(--dur-3) var(--ease), color var(--dur-3) var(--ease), border-color var(--dur-3) var(--ease);
  }
}
/* Icon-only in the header row, which is already crowded at 320px; labelled in
   the mobile drawer, where there is room and no other affordance explains it. */
.theme-trigger-label { display: none; }
.mobile-nav .theme-trigger-label { display: inline; }

/* ============================================================================
   Conversion surfaces: hero action, choice groups, search dock, voice states.
   Appended last on purpose -- it adds new selectors and restates its own
   reduced-motion rules rather than relying on the earlier blanket block.
   ============================================================================ */

/* The hero copy column used to end on a stat row, leaving the search dock at
   the foot of the section as the only thing to act on. */
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 30px; }
.hero-cta .button { min-height: 52px; padding: 0 24px; font-size: 15px; }
.hero-cta svg { width: 18px; transition: transform var(--dur-2) var(--ease); }
.hero-cta .button:hover svg { transform: translateX(3px); }
[dir="rtl"] .hero-cta svg { transform: scaleX(-1); }
[dir="rtl"] .hero-cta .button:hover svg { transform: translateX(-3px) scaleX(-1); }

/* The intent question is no longer a <label for> pointing at a hidden input,
   so it needs the styling the label used to carry. */
.form-step .form-step-label { display: block; font-family: var(--font-latin); font-size: 18px; font-weight: 700; }

/* Selection is already carried by aria-checked; this makes it visible without
   relying on the fill colour alone. */
.choice-row button[role="radio"] { position: relative; transition: background var(--dur-2), border-color var(--dur-2), color var(--dur-2); }
.choice-row button[role="radio"][aria-checked="true"]::after { content: ""; position: absolute; inset-inline: 14px; bottom: 6px; height: 2px; border-radius: 2px; background: currentColor; opacity: .55; }

/* Show which field of the dock has focus: the cells are divided by hairlines
   only, so a focused input was otherwise indistinguishable from its neighbours. */
.search-dock label:focus-within { background: var(--surface-2); }
.search-dock label:first-of-type:focus-within { border-start-start-radius: 20px; border-end-start-radius: 20px; }

/* --- Live voice: make the orb say which direction audio is flowing --------
   Every state is already announced in #voice-status; these are the redundant
   visual channel, never the only one. */
#voice-status::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-inline-end: 8px; border-radius: 50%; background: var(--on-contrast-faint); vertical-align: middle; }
.voice-dialog[data-voice-state="listening"] #voice-status::before,
.voice-dialog[data-voice-state="user_speaking"] #voice-status::before { background: var(--success); }
.voice-dialog[data-voice-state="assistant_speaking"] #voice-status::before { background: var(--on-contrast-brand); }
.voice-dialog[data-voice-state="thinking"] #voice-status::before,
.voice-dialog[data-voice-state="requesting_permission"] #voice-status::before,
.voice-dialog[data-voice-state="provisioning"] #voice-status::before,
.voice-dialog[data-voice-state="connecting"] #voice-status::before { background: var(--warning); }
.voice-dialog[data-voice-state="muted"] #voice-status::before,
.voice-dialog[data-voice-state="error"] #voice-status::before { background: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  /* Incoming audio pushes the ring outward; outgoing audio lights the core.
     Two different motions, so "it is hearing me" never looks like "it is
     talking to me". */
  .voice-dialog[data-voice-state="listening"] .voice-orb > span:first-child,
  .voice-dialog[data-voice-state="user_speaking"] .voice-orb > span:first-child { animation: voice-intake 1.9s var(--ease) infinite; }
  .voice-dialog[data-voice-state="user_speaking"] .voice-orb > span:first-child { animation-duration: 1.1s; border-color: var(--success); }
  .voice-dialog[data-voice-state="assistant_speaking"] .voice-orb > span:nth-child(2) { animation: voice-output 1.5s var(--ease) infinite; }
  .voice-dialog[data-voice-state="thinking"] .voice-orb > span:first-child { border-style: dashed; border-color: var(--warning); animation: voice-thinking 3.4s linear infinite; }
}
@keyframes voice-intake { 0%, 100% { transform: scale(1); opacity: .6; } 50% { transform: scale(1.16); opacity: 0; } }
@keyframes voice-output { 0%, 100% { } 50% { } }
@keyframes voice-thinking { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .hero-cta .button:hover svg { transform: none; }
  [dir="rtl"] .hero-cta .button:hover svg { transform: scaleX(-1); }
  .voice-orb > span { animation: none !important; }
}

@media (max-width: 560px) {
  /* Full-width stacked actions: two pill buttons side by side fall below the
     44px touch target once the viewport is this narrow. */
  .hero-cta { gap: 10px; margin-bottom: 24px; }
  .hero-cta .button { width: 100%; }
  /* At this width the search dock sits directly beneath the hero copy, so
     "Browse homes" and the dock's "Search properties" become two adjacent red
     primaries competing for the same intent. The dock is the better control of
     the two -- it can carry a query -- so the duplicate stands down and the
     recommendation CTA remains as the one secondary action. */
  .hero-cta [data-scroll="units"] { display: none; }
}

/* The dock is absolutely positioned at bottom:34px and is 106px tall, so the
   hero has to reserve 140px plus breathing room. It previously reserved 126px,
   which only looked right because the copy column was shorter than the dock. */
@media (min-width: 821px) {
  .hero { padding-bottom: 172px; }
}

/* Bounded discovery pages and source transparency. */
.catalog-pagination { display:flex; flex-direction:column; align-items:center; gap:10px; margin-block:18px 4px; }
.catalog-pagination[hidden] { display:none; }
.catalog-pagination[aria-busy="true"] { opacity:.6; }
.catalog-pagination-status { margin:0; color:var(--muted); font-size:13px; font-variant-numeric:tabular-nums; }
.catalog-pagination-pages { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:6px; }
.catalog-page { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-width:44px; min-height:44px; padding:0 12px; border:1px solid var(--line); border-radius:var(--r-sm); background:var(--paper); color:var(--ink); font:inherit; font-weight:600; font-variant-numeric:tabular-nums; cursor:pointer; transition:border-color .15s, color .15s, background .15s; }
.catalog-page:hover:not(:disabled):not(.is-current) { border-color:var(--brand-ink); color:var(--brand-ink); }
.catalog-page:focus-visible { outline:2px solid var(--brand-ink); outline-offset:2px; }
.catalog-page.is-current { background:var(--brand); border-color:var(--brand-ink); color:var(--on-brand); cursor:default; }
.catalog-page:disabled:not(.is-current) { opacity:.4; cursor:default; }
.catalog-page-prev, .catalog-page-next { color:var(--brand-ink); }
[dir=rtl] .catalog-page-prev svg, [dir=rtl] .catalog-page-next svg { transform:scaleX(-1); }
.catalog-page-gap { min-width:20px; text-align:center; color:var(--muted); }
.show-more-row button { min-height:44px; }
@media (max-width:560px) {
  .catalog-pagination-pages { gap:4px; }
  .catalog-page { min-width:40px; padding:0 8px; }
  .catalog-page-prev span, .catalog-page-next span { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
}
.voice-sources { max-height:180px; overflow:auto; text-align:start; font-size:12px; padding:10px; }
.voice-sources a { display:block; text-decoration:underline; overflow-wrap:anywhere; margin-block:6px; }
.voice-sources iframe { width:100%; border:0; min-height:90px; background:white; }

/* Voice connection details. A phone has no console, so when a session fails
   silently this is the only way a visitor can tell us which boundary broke. */
.voice-diagnostics { margin-top: 18px; text-align: start; font-size: 12px; }
.voice-diagnostics summary { min-height: 44px; display: flex; align-items: center; color: var(--on-contrast-soft); cursor: pointer; }
.voice-diagnostics pre { max-height: 190px; margin: 8px 0; padding: 10px 12px; overflow: auto; border-radius: var(--r-sm); background: var(--contrast-fill); color: var(--on-contrast); font-size: 11px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.voice-diagnostics button { min-height: 44px; padding: 0 14px; border: 1px solid var(--on-media-line); border-radius: var(--r-pill); background: transparent; color: var(--on-contrast); font-size: 12px; font-weight: 700; cursor: pointer; }

/* --- Contact request dialog: inline errors on a dark surface -------------- */
.contact-request .field { display: grid; gap: 6px; margin: 12px 0; font-size: 14px; }
.contact-request .field label { margin: 0; }
/* Errors sit on the light dialog surface, so they use the surface danger
   tokens; the previous on-contrast colours were built for black backgrounds
   and rendered as unreadable green-on-pink and white-on-pink. */
.contact-request .field-error,
.contact-request .error-summary { color: var(--danger); }
.contact-request .field-error { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.5; }
.contact-request .field-error::before { content: none; }
.contact-request input[aria-invalid="true"],
.contact-request select[aria-invalid="true"],
.contact-request textarea[aria-invalid="true"] { outline: 2px solid var(--danger); outline-offset: 1px; border-color: var(--danger); }
.contact-request .error-summary { margin: 14px 0 0; padding: 13px 15px; border: 2px solid var(--danger); border-radius: var(--r-sm); background: var(--danger-soft); }
.contact-request .error-summary h3 { margin: 0 0 8px; font-size: 15px; color: var(--ink); }
.contact-request .error-summary ul { margin: 0; padding-inline-start: 20px; }
.contact-request .error-summary li { margin: 4px 0; line-height: 1.6; }
.contact-request .error-summary a { display: inline; padding: 0; color: var(--danger); text-decoration: underline; text-underline-offset: 3px; }
.contact-request [data-lead-status] { color: var(--ink); font-weight: 600; }
.contact-request [data-lead-status].is-error { color: var(--danger); }
.contact-request .contact-note { color: var(--muted); margin: 2px 0 0; }
.contact-request[dir="rtl"] [data-contact-close] { float: left; }
.contact-request #contact-phone-note { font-size: 12px; color: var(--on-contrast-soft); }
.unit-image-link { position: absolute; inset: 0; }
.unit-image-link:focus-visible { outline: 3px solid var(--brand-ink); outline-offset: -5px; }
.unit-payment { margin-top: 14px; font-variant-numeric: tabular-nums; }
.unit-payment-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); }
.unit-payment-facts > div { min-width: 0; display: grid; align-content: start; gap: 4px; }
.unit-payment small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.unit-payment strong { color: var(--ink); font-size: 15px; overflow-wrap: anywhere; }
.unit-payment-facts span { color: var(--ink-soft); font-size: 12px; overflow-wrap: anywhere; }
.unit-plan-option { display: grid; gap: 4px; margin-top: 10px; padding-inline-start: 12px; border-inline-start: 3px solid var(--brand); }
.unit-terms-source { margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; overflow-wrap: anywhere; }
.unit-more-plans { display: inline-block; margin-top: 10px; font-size: 12px; }
@media (max-width: 400px) { .unit-payment-facts { gap: 8px; padding: 10px; } }

/* Readability floor: several labels were hard-coded at 8-10px, below what is
   legible on a phone. Kept last so it wins over the earlier breakpoint rules. */
.hero-proof span, .hero-caption span, .hero-status small, .search-dock label > span,
.destination-card small, .verified-badge,
.form-step > span, .match-badge, .match-facts span, .match-trust, .offer-item em,
.assistant-launcher small, .assistant-head small, .voice-turn-speaker, .voice-captions b,
.voice-bubble small, .theme-menu-title { font-size: 11px; }
.unit-terms-source, .footer-note, .assistant-disclaimer, .assistant-suggestions button { font-size: 12px; }

/* Narrow phones (iPhone SE 1st gen, small Androids): the kwred lockup plus
   three header controls was 35px wider than the viewport, pushing the menu
   button off-screen and making the whole page scroll sideways. */
@media (max-width: 374px) {
  .site-header .brand { min-width: 0; }
  .site-header .kwred-brand-copy { min-width: 0; }
  .site-header .kwred-brand-copy small { display: none; }
  .site-header .header-actions { gap: 2px; }
  .site-header .language-toggle { padding-inline: 6px; }
  .feature-card-top { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .feature-project-controls { margin: 0; justify-self: start; }
}

/* Conversation ended (text chat or Live Voice): a clear stop, and one tap to
   start again. */
.assistant-messages .conversation-ended { display: grid; justify-items: center; gap: 8px; margin: 14px 0 6px; padding: 12px; border-top: 1px dashed var(--line-strong); text-align: center; }
.assistant-messages .conversation-ended p { margin: 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.assistant-messages .conversation-ended button { min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--brand); background: var(--brand); color: var(--on-brand); font: inherit; font-weight: 700; cursor: pointer; }
.assistant-messages .conversation-ended button + button { background: transparent; color: var(--brand-ink); }

/* Contact request dialog. One column, one primary action, quiet chrome:
   the close control no longer inherits the red submit style, errors appear
   once beside their field, and every hint uses readable surface tokens (the
   phone hint used an on-dark token that vanished on the light theme). */
.contact-request { width: min(460px, calc(100% - 32px)); padding: 0; border-radius: var(--r-md); overscroll-behavior: contain; }
.contact-request > section { padding: 24px 24px 20px; }
.contact-request[open] { animation: contact-in .18s ease-out; }
@keyframes contact-in { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
.contact-request .contact-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.contact-request .contact-head-text { flex: 1; min-width: 0; }
.contact-request h2 { margin: 0 0 6px; font-family: var(--font-heading), system-ui, sans-serif; font-size: 22px; line-height: 1.25; letter-spacing: -.01em; }
.contact-request .contact-intro { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.contact-request .contact-close { float: none; flex: none; display: inline-grid; place-items: center; width: 40px; min-height: 40px; height: 40px; margin: -6px -8px 0 0; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 0; }
.contact-request[dir="rtl"] .contact-close { float: none; margin: -6px 0 0 -8px; }
.contact-request .contact-close:hover { background: var(--surface-inset); color: var(--ink); }
.contact-request .contact-close:focus-visible, .contact-request .contact-submit:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.contact-request .contact-mic { display: flex; align-items: center; gap: 8px; margin: -6px 0 16px; padding: 8px 12px; border-radius: var(--r-sm); background: var(--surface-inset); color: var(--muted); font-size: 13px; line-height: 1.4; }
.contact-request .contact-mic[hidden] { display: none; }
.contact-request .contact-mic > span:first-child { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }
.contact-request form { display: grid; gap: 16px; margin: 0; }
.contact-request .field { display: grid; gap: 6px; margin: 0; font-size: 14px; }
.contact-request .field > label { display: block; margin: 0; font-weight: 600; font-size: 14px; color: var(--ink); }
.contact-request .contact-optional { font-weight: 400; color: var(--muted); }
.contact-request .contact-optional::before { content: "· "; }
.contact-request input:not([type=checkbox]), .contact-request textarea { min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--paper); color: var(--ink); font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.contact-request textarea { min-height: 88px; resize: vertical; line-height: 1.5; }
.contact-request input::placeholder, .contact-request textarea::placeholder { color: var(--muted); opacity: .8; }
.contact-request input:not([type=checkbox]):focus, .contact-request textarea:focus { border-color: var(--brand); outline: 2px solid var(--focus); outline-offset: 2px; }
.contact-request input[aria-invalid="true"], .contact-request textarea[aria-invalid="true"] { border-color: var(--danger); outline: 3px solid var(--danger-soft); }
.contact-request #contact-phone { text-align: left; }
.contact-request .contact-note, .contact-request #contact-phone-note { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.contact-request .field-error { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--danger); }
.contact-request .field-error::before { content: none; }
.contact-request .field-error:not([hidden]) + .contact-note { display: none; }
.contact-request .contact-consent-field { gap: 4px; }
.contact-request .contact-consent { display: flex; align-items: flex-start; gap: 10px; min-height: 0; margin: 0; font-size: 14px; line-height: 1.55; cursor: pointer; }
.contact-request .contact-consent input[type=checkbox] { flex: none; width: 20px; min-width: 20px; height: 20px; min-height: 20px; margin: 1px 0 0; accent-color: var(--brand); cursor: pointer; }
.contact-request .contact-consent a { display: inline; padding: 0; color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.contact-request .contact-submit { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; margin-top: 4px; border: 0; border-radius: var(--r-sm); background: var(--brand); color: var(--on-brand); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; transition: background-color .15s; }
.contact-request .contact-submit:hover { background: var(--brand-press); }
.contact-request .contact-submit[aria-busy="true"] { cursor: progress; opacity: .85; }
.contact-request .contact-submit[aria-busy="true"]::before { content: ""; width: 16px; height: 16px; margin-inline-end: 10px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: contact-spin .7s linear infinite; }
@keyframes contact-spin { to { transform: rotate(360deg); } }
.contact-request [data-lead-status] { margin: 0; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-inset); font-size: 14px; line-height: 1.5; }
.contact-request [data-lead-status].is-error { background: var(--danger-soft); color: var(--danger); }
@media (max-width: 560px) {
  .contact-request { width: 100%; max-width: 100%; max-height: 92dvh; margin: auto auto 0; border-radius: var(--r-md) var(--r-md) 0 0; border-bottom: 0; }
  .contact-request > section { padding: 20px 16px max(16px, env(safe-area-inset-bottom)); }
  .contact-request[open] { animation-name: contact-up; }
  @keyframes contact-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
}
.tile-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px; }
.tile-cta { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--paper); color: var(--ink); font: 700 12.5px/1 var(--font-latin); text-decoration: none; cursor: pointer; transition: background var(--dur-2), border-color var(--dur-2), color var(--dur-2), transform .25s var(--ease); }
.tile-cta svg { width: 16px; height: 16px; flex: none; }
.tile-ctas .tile-cta, .tile-ctas .tile-cta:hover { text-decoration: none; }
.tile-cta:hover { border-color: var(--ink); transform: translateY(-1px); }
.tile-cta:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.tile-cta-primary { flex: 1 1 auto; border-color: var(--brand); background: var(--brand); color: var(--on-brand); }
.tile-cta-primary:hover { border-color: var(--brand-fill-hover); background: var(--brand-fill-hover); }
.tile-cta-whatsapp svg { color: #128c4b; }
[data-theme="dark"] .tile-cta-whatsapp svg { color: #43c898; }
.tile-cta-icon { width: 40px; padding: 0; flex: none; }
[dir="rtl"] .tile-cta svg:has(use[href="#i-arrow"]) { transform: scaleX(-1); }
.unit-ctas { flex-wrap: nowrap; padding-top: 14px; border-top: 1px solid var(--line); margin-top: 14px; }
.unit-ctas .tile-cta-primary { min-width: 0; }
.unit-ctas .tile-cta { white-space: nowrap; }
@media (max-width: 560px) {
  .tile-cta { min-height: 44px; }
  .tile-cta-icon { width: 44px; }
}
/* Visitor memory notice under the assistant disclaimer (18-conversation-memory.js). */
.memory-note { margin: 0; padding: 0 13px 10px; color: var(--muted); font-size: 11px; line-height: 1.45; text-align: center; }
.memory-note button { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.memory-note button:focus-visible, .memory-note a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.memory-earlier { margin: 10px 0 6px; color: var(--muted); font-size: 11px; text-align: center; }
.restored-message { opacity: .72; }
.memory-note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
/* Developer logos sit on their own chip so they read in both themes; files named *-on-dark.* are the developer's white logo and get a dark chip. */
.developer-logo img{background:#fff;border-radius:6px;padding:4px}.developer-logo img[src*="-on-dark."],.map-developer-logo[src*="-on-dark."]{background:#1b1b1b}

/* Homepage: payment calculator teaser (full tool at /payment-calculator). */
.pay-home-card { display: grid; gap: 18px; padding: clamp(20px, 2.6vw, 32px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
.pay-home-form { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 12px; }
.pay-home-fld { display: grid; gap: 7px; min-width: 0; }
.pay-home-fld > span { color: var(--muted); font-size: 12px; font-weight: 600; }
.pay-home-fld input { width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface-inset); color: var(--ink); font: 600 16px/1 var(--font-latin); font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.pay-home-fld input::-webkit-outer-spin-button, .pay-home-fld input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pay-home-fld input:focus-visible { border-color: var(--focus); outline: 2px solid var(--focus); outline-offset: 2px; background: var(--paper); }
.pay-home-go { min-height: 50px; white-space: nowrap; }
.pay-home-go svg { width: 16px; height: 16px; }
[dir="rtl"] .pay-home-go svg, [dir="rtl"] .pay-home-card .text-link svg { transform: scaleX(-1); }
.pay-home-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; color: var(--ink-soft); font-size: 13px; }
.pay-home-points li { display: inline-flex; align-items: center; gap: 7px; }
.pay-home-points svg { flex: none; width: 16px; height: 16px; stroke: var(--success); fill: none; stroke-width: 2.4; }
.pay-home-card .text-link { justify-self: start; }
@media (max-width: 860px) {
  .pay-home-form { grid-template-columns: 1fr 1fr; }
  .pay-home-form .pay-home-fld:first-child, .pay-home-go { grid-column: 1 / -1; }
}

.media-link { position: absolute; inset: 0; z-index: 2; }
.media-link:focus-visible { outline: 3px solid var(--brand-ink); outline-offset: -5px; }

/* Advisor portraits (43-assistant-picker.js sets --advisor-photo and data-photo / data-adv) */
.advisor-initial { position: relative; overflow: hidden; }
.advisor-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.assistant-avatar[data-photo] { background: var(--advisor-photo) center / cover no-repeat; outline: 2px solid var(--adv-2, var(--brand)); }
.assistant-avatar[data-photo]::before { content: none; }
.assistant-avatar[data-photo] > svg { display: none; }
.assistant-messages .assistant-message[data-adv] { position: relative; margin-inline-start: 36px; max-width: calc(90% - 36px); }
.assistant-messages .assistant-message[data-adv]::before { content: ""; position: absolute; inset-inline-start: -37px; bottom: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--adv-photo) center / cover no-repeat; outline: 3px solid var(--line-strong, var(--line)); }
/* 01-config.js injects the orb colours with !important, so the portrait needs the same weight. */
html[data-advisor-photo] .voice-orb > span:nth-child(2) { background: var(--advisor-photo) center / cover no-repeat !important; border: 2px solid var(--adv-2, var(--brand)) !important; }
html[data-advisor-photo] .voice-orb > svg, html[data-advisor-photo] .voice-orb .kwred-mark-svg { display: none !important; }
.assistant-namerow .adv-ai-tag { padding: 2px 7px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .3); font-size: 10px; font-weight: 800; letter-spacing: .04em; opacity: .85; }
