/* Desktop: the mobile menu's top bar (logo + close button) is never shown.
   Placed first, so the mobile rules further down still win on phones. */
.nav-sheet-top, .nav-close { display: none; }

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ==========================================================================
   Foundry — design system
   Modern marketplace: white surfaces, near-black type, one vivid accent.
   Manrope carries headlines at heavy weights; Inter carries the interface.
   ========================================================================== */

:root {
  --white: #FFFFFF;
  --ink-950: #0A1119;
  --ink-900: #101828;
  --ink-800: #1D2939;
  --ink-700: #344054;
  --ink-600: #475467;
  --ink-500: #667085;
  --ink-400: #98A2B3;
  --ink-300: #D0D5DD;
  --ink-200: #EAECF0;
  --ink-100: #F2F4F7;
  --ink-50:  #F9FAFB;

  --accent-700: #B8380B;
  --accent-600: #D6420E;
  --accent-500: #F04E23;
  --accent-200: #FFD3C4;
  --accent-100: #FFECE5;

  --green-700: #05603A;
  --green-600: #039855;
  --green-100: #D1FADF;

  --amber-700: #93370D;
  --amber-600: #DC6803;
  --amber-100: #FEF0C7;

  --red-700: #912018;
  --red-600: #D92D20;
  --red-100: #FEE4E2;

  --blue-700: #175CD3;
  --blue-100: #D1E9FF;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  --sh-xs: 0 1px 2px rgba(16, 24, 40, .05);
  --sh-sm: 0 1px 3px rgba(16, 24, 40, .1), 0 1px 2px rgba(16, 24, 40, .06);
  --sh-md: 0 4px 8px -2px rgba(16, 24, 40, .1), 0 2px 4px -2px rgba(16, 24, 40, .06);
  --sh-lg: 0 12px 16px -4px rgba(16, 24, 40, .08), 0 4px 6px -2px rgba(16, 24, 40, .03);
  --sh-xl: 0 20px 24px -4px rgba(16, 24, 40, .1), 0 8px 8px -4px rgba(16, 24, 40, .04);

  --header-h: 72px;
  --rail-w: 0px; /* left icon rail removed; kept as 0 so .shell/.srp/.est layout math needs no other edits */

  --f-display: 'Manrope', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.032em;
  margin: 0 0 .5em;
  color: var(--ink-950);
}
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.45rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.022em; }
h4 { font-size: .98rem; font-weight: 700; letter-spacing: -0.012em; }

p { margin: 0 0 1em; }
a { color: var(--accent-600); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; display: block; }

:focus-visible { outline: 2px solid var(--accent-500); outline-offset: 2px; border-radius: 3px; }

.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: absolute; left: 8px; top: -48px; z-index: 300;
  background: var(--ink-900); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
}
.skip-link:focus { top: 8px; }

/* ------------------------------------------------------------------ shell */

.shell { padding-inline-start: var(--rail-w); }

.rail {
  position: fixed; inset-block: 0; inset-inline-start: 0; width: var(--rail-w); z-index: 120;
  background: var(--white); border-inline-end: 1px solid var(--ink-200);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 14px 8px;
}
.rail-item {
  width: 100%; display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 11px 4px; border-radius: var(--r); color: var(--ink-600);
  font-size: .68rem; font-weight: 500; text-align: center; letter-spacing: -0.006em;
}
.rail-item:hover { background: var(--ink-100); color: var(--ink-900); text-decoration: none; }
.rail-item.is-active { background: var(--accent-100); color: var(--accent-700); }
.rail-item svg { width: 21px; height: 21px; }
.rail-sep { width: 34px; height: 1px; background: var(--ink-200); margin: 8px 0; }

.site-header {
  position: sticky; top: 0; z-index: 110; height: var(--header-h);
  background: var(--white); border-bottom: 1px solid var(--ink-200);
  display: flex; align-items: center;
}
.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 28px; width: 100%; padding: 0 24px;
}
.header-inner > .logo { justify-self: center; }
.header-inner > .nav--main { justify-self: start; }
.header-inner > .nav--right { justify-self: end; }

.logo { display: flex; align-items: center; gap: 8px; color: var(--ink-950); }
.logo:hover { text-decoration: none; }
.logo .mark { width: 24px; height: 24px; }
.logo-text { font-family: var(--f-display); font-size: 1.1rem; font-weight: 700; letter-spacing: -0.015em; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav--right { margin-inline-start: 0; }
.nav a {
  padding: 9px 14px; border-radius: var(--r-sm); color: var(--ink-800);
  font-size: .94rem; font-weight: 500; letter-spacing: -0.008em;
}
.nav a:hover { background: var(--ink-100); text-decoration: none; }
.nav a.is-active { color: var(--accent-700); }
.nav--right a { color: var(--ink-600); font-size: .9rem; }

.nav-toggle {
  display: none; margin-inline-start: auto; background: none;
  border: 1px solid var(--ink-300); border-radius: var(--r-sm);
  padding: 8px 10px; cursor: pointer; color: var(--ink-800);
}

/* Desktop header, v2 — single row: logo + primary nav clustered on the
   left, account cluster pinned right. .nav-panel wraps nav--main/nav--right
   for the mobile toggle; display:contents promotes them back out so they
   lay out directly in .header-inner's flex row. Scoped to >=1000px only —
   the mobile block below is untouched. */
@media (min-width: 1000px) {
  .header-inner { display: flex; align-items: center; gap: 4px; }
  .nav-panel { display: contents; }

  .header-inner > .logo { order: 0; margin-inline-end: 28px; }

  .nav-panel .nav--main { order: 1; gap: 2px; }
  .nav-panel .nav--main a { font-weight: 600; }

  .nav-panel .nav--right { order: 2; margin-inline-start: auto; gap: 10px; }
  .nav-panel .nav--right a:not(.btn) { padding: 9px 12px; }
  /* Keep every header label on one line. Signed-in developers and agents
     get extra links (Espace promoteur, Espace agent, Admin), so the row is
     tighter: shrink spacing and type before anything has to wrap. */
  .site-header a, .site-header button, .site-header .nav-drop-trigger { white-space: nowrap; }
  .nav-panel .nav--main a,
  .nav-panel .nav--right a:not(.btn) { flex-shrink: 0; }
  @media (max-width: 1365px) {
    .nav-panel .nav--main a { padding: 9px 9px; font-size: .9rem; }
    .nav-panel .nav--right a:not(.btn) { padding: 9px 8px; font-size: .86rem; }
    .nav-panel .nav--right { gap: 6px; }
    .header-inner { gap: 2px; }
    .header-inner > .logo { margin-inline-end: 18px; }
  }

  .lang-btn {
    border: 1px solid var(--ink-200); border-radius: var(--r);
    padding: 7px 13px 7px 11px; background: var(--white);
  }
  .lang-btn:hover { border-color: var(--accent-200); background: var(--accent-100); }

  .nav--right .btn--primary.btn--sm {
    border-radius: var(--r); padding: 9px 18px; gap: 7px; font-weight: 700;
  }

  /* Buy/Rent mega-dropdown, fäm-style: hover/focus reveals a panel of
     sub-categories plus a highlighted promo column. */
  .nav-drop { position: relative; }
  .nav-drop-trigger { display: inline-flex; align-items: center; gap: 5px; }
  .nav-drop-trigger .chev { transition: transform .15s ease; color: var(--ink-400); }
  .nav-drop:hover .nav-drop-trigger .chev,
  .nav-drop:focus-within .nav-drop-trigger .chev { transform: rotate(180deg); }

  .nav-mega {
    display: none; position: fixed; top: var(--header-h); inset-inline: 0;
    background: var(--white); border-bottom: 1px solid var(--ink-200);
    box-shadow: var(--sh-lg); z-index: 120; padding: 32px 0;
  }
  .nav-drop:hover .nav-mega,
  .nav-drop:focus-within .nav-mega { display: block; }
  /* Invisible bridge: keeps the dropdown open while the pointer crosses
     the empty header space between the trigger and the panel below it. */
  .nav-drop::before {
    content: ""; position: absolute; top: 100%; inset-inline: -14px;
    height: 34px; background: transparent;
  }

  /* Account dropdown ("Mon espace") for signed-in agents, developers and admins. */
  .nav-menu {
    display: none; position: absolute; top: 100%; inset-inline-end: 0;
    min-width: 220px; background: var(--white); border: 1px solid var(--ink-200);
    border-radius: var(--r); box-shadow: var(--sh-lg); padding: 8px; z-index: 120;
  }
  .nav-drop:hover .nav-menu,
  .nav-drop:focus-within .nav-menu { display: block; }
  .nav-menu a { display: block; padding: 10px 12px; white-space: nowrap; border-radius: var(--r-sm); color: var(--ink-800); font-size: .94rem; font-weight: 500; }
  .nav-menu a:hover { background: var(--ink-100); text-decoration: none; }
  .nav-drop-trigger { cursor: pointer; }

  .nav-mega-inner { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }

  .nav-mega-label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 14px; }
  .nav-mega-rule { height: 1px; background: var(--ink-200); margin-bottom: 20px; }

  .nav-mega-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 24px; }
  .nav-mega-links a { padding: 9px 2px; color: var(--ink-800); font-size: .96rem; font-weight: 500; }
  .nav-mega-links a:hover { color: var(--accent-700); text-decoration: none; }
  .nav-mega-links a:last-child { color: var(--accent-700); font-weight: 700; }

  .nav-mega-promo {
    background: var(--accent-100); color: var(--ink-900); border-radius: var(--r-lg); padding: 24px;
    display: flex; flex-direction: column; gap: 10px; border-inline-start: 4px solid var(--accent-600);
  }
  .nav-mega-promo .eyebrow { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-700); margin: 0; }
  .nav-mega-promo p { margin: 0; font-family: var(--f-display); font-size: 1.28rem; font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; color: var(--ink-950); }
  .nav-mega-promo-link { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 700; color: var(--accent-700); margin-top: 4px; }
  .nav-mega-promo-link:hover { text-decoration: underline; }
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-body); font-size: .92rem; font-weight: 600; letter-spacing: -0.008em;
  padding: 11px 20px; border-radius: var(--r); border: 1px solid transparent;
  cursor: pointer; transition: background .14s, border-color .14s, color .14s, box-shadow .14s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--accent-600); color: #fff; box-shadow: var(--sh-xs); }
.btn--primary:hover { background: var(--accent-700); }
.btn--dark { background: var(--ink-900); color: #fff; }
.btn--dark:hover { background: var(--ink-950); }
.btn--secondary { background: var(--white); color: var(--ink-800); border-color: var(--ink-300); box-shadow: var(--sh-xs); }
.btn--secondary:hover { background: var(--ink-50); border-color: var(--ink-400); }
.btn--ghost { background: transparent; color: var(--ink-700); }
.btn--ghost:hover { background: var(--ink-100); }
.btn--whatsapp { background: #1EA85C; color: #fff; }
.btn--whatsapp:hover { background: #17864A; }
.btn--danger { background: var(--white); color: var(--red-700); border-color: var(--red-100); }
.btn--danger:hover { background: var(--red-100); }
.btn--sm { padding: 7px 13px; font-size: .84rem; border-radius: var(--r-sm); }
.btn--lg { padding: 14px 26px; font-size: 1rem; }
.btn--block { width: 100%; }

/* ----------------------------------------------------------------- layout */

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 800px; }
.wrap--wide { max-width: 1660px; }

.section { padding: 60px 0; }
.section--tight { padding: 36px 0; }
.section--gray { background: var(--ink-50); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head p { margin: 6px 0 0; color: var(--ink-500); max-width: 58ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-display); font-size: .72rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; line-height: 1; color: var(--accent-600);
  padding: 8px 14px 8px 12px; margin-bottom: 14px;
  border: 1.5px solid currentColor; background: transparent;
  /* Uneven corner radii give the hand-drawn outline; a slight tilt keeps it informal. */
  border-radius: 22px 9px 20px 11px / 10px 20px 9px 22px;
  transform: rotate(-1.2deg);
  transition: background .2s ease, transform .2s ease;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%;
  background: currentColor; opacity: .85;
}
.eyebrow:hover { background: color-mix(in srgb, currentColor 8%, transparent); transform: rotate(0deg); }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(226px, 1fr)); }

/* ------------------------------------------------------------------- hero */

.hero { position: relative; height: clamp(560px, 78vh, 760px); overflow: visible; background: var(--ink-900); }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img, .hero-media svg { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,17,25,.55) 0%, rgba(10,17,25,.3) 40%, rgba(10,17,25,.62) 100%);
}
.hero-inner--centered { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; text-align: center; }

.hero-head h1 {
  color: #fff; max-width: 26ch; margin: 0 auto 12px; margin-inline: auto;
  font-size: clamp(2.6rem, 5.6vw, 4.4rem); letter-spacing: -0.015em; line-height: 1.05; font-weight: 800;
}
.hero-head .section-lede { color: rgba(255,255,255,.92); font-size: clamp(1.1rem, 1.7vw, 1.32rem); font-weight: 400; max-width: 46ch; margin: 0 auto; }

/* Stacked floating control panel: a light pill tab-bar sitting above a
   white search card, like a two-tier overlay anchored mid-hero. */
.hero-panel { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 980px; width: 100%; }

.hero-tabs {
  display: inline-flex; gap: 2px; padding: 8px; background: var(--white);
  border-radius: 999px; box-shadow: var(--sh-lg); flex-wrap: wrap; justify-content: center;
}
.hero-tab {
  padding: 14px 26px; border-radius: 999px; font-size: 1.04rem; font-weight: 700;
  background: transparent; color: var(--ink-600); border: none; cursor: pointer;
  transition: background .14s, color .14s;
}
.hero-tab:hover { background: var(--ink-100); text-decoration: none; color: var(--ink-900); }
.hero-tab.is-active { background: var(--accent-100); color: var(--accent-700); }
.hero-tab--link { color: var(--ink-600); }
.hero-tab--link:hover { background: var(--ink-100); }

.hero-search-card {
  width: 100%; background: var(--white); border-radius: var(--r-lg); box-shadow: var(--sh-xl);
  padding: 28px; display: flex; flex-direction: column; gap: 18px;
}
.hero-search-card .search-box { background: var(--ink-50); padding: 8px 8px 8px 20px; }
.hero-search-card .search-box input { font-size: 1.08rem; padding: 10px 0; }
.hero-search-card .search-box .btn { padding: 15px 26px; border-radius: 999px; font-size: 1rem; }

.hero-chips { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; width: auto; flex: 0 0 auto;
  border: 1px solid var(--ink-200); border-radius: 999px; padding: 11px 18px;
  font-size: .96rem; font-weight: 600; color: var(--ink-700); background: var(--white);
}
.chip--badge { background: var(--accent-100); border-color: var(--accent-100); color: var(--accent-700); }
.chip--badge em { font-style: normal; font-weight: 500; opacity: .85; margin-inline-start: 2px; }
.chip--select { appearance: none; cursor: pointer; padding-inline-end: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%23556070' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.chip--select:hover { border-color: var(--ink-300); }

.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; justify-content: center; }
.hero-stats .hero-stat strong { color: #fff; }
.hero-stats .hero-stat span { color: rgba(255,255,255,.72); }

.search-box {
  display: flex; align-items: center; gap: 8px; background: #fff;
  border-radius: var(--r-lg); padding: 7px 7px 7px 20px; box-shadow: var(--sh-xl);
}
.search-box input {
  flex: 1; border: none; outline: none; box-shadow: none; font-family: var(--f-body);
  font-size: 1.02rem; color: var(--ink-900); padding: 12px 0; background: none; min-width: 0;
}
.search-box input::placeholder { color: var(--ink-400); }
.search-box .btn { padding: 13px 20px; }

.hero-stats { display: flex; gap: 34px; margin-top: 30px; flex-wrap: wrap; }
.hero-stat strong { display: block; font-family: var(--f-display); font-size: 1.5rem; font-weight: 800; color: #fff; letter-spacing: -0.03em; }
.hero-stat span { font-size: .82rem; color: rgba(255,255,255,.72); }

/* ------------------------------------------------------------------ cards */

.card {
  background: var(--white); border: 1px solid var(--ink-200); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .16s, transform .16s, border-color .16s;
}
.card:hover { box-shadow: var(--sh-lg); transform: translateY(-2px); border-color: var(--ink-300); }

.card-media { position: relative; aspect-ratio: 16 / 11; background: var(--ink-100); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-tags { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.card-count {
  position: absolute; bottom: 10px; inset-inline-end: 10px;
  background: rgba(10,17,25,.7); color: #fff; font-size: .7rem; font-weight: 500;
  padding: 3px 8px; border-radius: var(--r-sm); backdrop-filter: blur(4px);
}
.card-fav {
  position: absolute; top: 9px; inset-inline-end: 9px; width: 32px; height: 32px;
  display: grid; place-items: center; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--ink-600); box-shadow: var(--sh-xs);
}
.card-fav:hover, .card-fav[aria-pressed=true] { color: var(--accent-600); }

.card-body { padding: 15px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card-price { font-family: var(--f-display); font-size: 1.32rem; font-weight: 800; letter-spacing: -0.035em; color: var(--ink-950); }
.card-price small { font-family: var(--f-body); font-size: .78rem; font-weight: 400; color: var(--ink-500); letter-spacing: 0; }
.card-specs { display: flex; align-items: center; gap: 7px; margin: 8px 0 3px; font-size: .89rem; color: var(--ink-700); flex-wrap: wrap; }
.card-specs b { font-weight: 600; color: var(--ink-900); }
.card-specs .sep { color: var(--ink-300); }
.card-loc { font-size: .87rem; color: var(--ink-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--ink-100);
  font-size: .78rem; color: var(--ink-500);
}
.card-agent { display: flex; align-items: center; gap: 7px; min-width: 0; }
.card-agent span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.avatar {
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; background: var(--ink-100); color: var(--ink-700);
  font-size: .68rem; font-weight: 700; font-family: var(--f-display);
}
.avatar--lg { width: 60px; height: 60px; font-size: 1.05rem; }
.avatar--photo { object-fit: cover; padding: 0; background: var(--ink-100); }

/* ----------------------------------------------------------------- badges */

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: var(--r-sm); white-space: nowrap;
}
.badge svg { width: 11px; height: 11px; }
.badge--verified { background: var(--green-100); color: var(--green-700); }
.badge--title    { background: var(--blue-100); color: var(--blue-700); }
.badge--warn     { background: var(--amber-100); color: var(--amber-700); }
.badge--drop     { background: var(--accent-100); color: var(--accent-700); }
.badge--neutral  { background: var(--ink-100); color: var(--ink-700); }
.badge--new      { background: var(--ink-900); color: #fff; }
.badge--danger   { background: var(--red-100); color: var(--red-700); }
.badge--outline  { background: rgba(255,255,255,.94); color: var(--ink-800); border: 1px solid var(--ink-200); }

.status-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.status-active { background: var(--green-600); }
.status-pending_review { background: var(--amber-600); }
.status-draft { background: var(--ink-400); }
.status-under_offer { background: var(--blue-700); }
.status-sold { background: var(--ink-600); }
.status-rejected, .status-withdrawn { background: var(--red-600); }

/* ------------------------------------------------------------------ forms */

label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-700); margin-bottom: 6px; }
.hint { font-size: .78rem; color: var(--ink-500); margin-top: 6px; }

input[type=text], input[type=email], input[type=password], input[type=tel],
input[type=number], input[type=search], select, textarea {
  width: 100%; font-family: var(--f-body); font-size: .93rem; color: var(--ink-900);
  padding: 10px 13px; background: var(--white);
  border: 1px solid var(--ink-300); border-radius: var(--r);
  box-shadow: var(--sh-xs); transition: border-color .14s, box-shadow .14s;
}
input:hover, select:hover, textarea:hover { border-color: var(--ink-400); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent-500); box-shadow: 0 0 0 3px var(--accent-100);
}
textarea { resize: vertical; min-height: 108px; }
select {
  appearance: none; padding-inline-end: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5L6 8.5L10 4.5' stroke='%23667085' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 12px;
}
input[type=range] { width: 100%; accent-color: var(--accent-600); box-shadow: none; padding: 0; border: none; }

.field { margin-bottom: 16px; }
.field-row { display: grid; gap: 14px; }
@media (min-width: 640px) { .field-row--2 { grid-template-columns: 1fr 1fr; } .field-row--3 { grid-template-columns: repeat(3, 1fr); } }

.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(152px, 1fr)); gap: 8px; }
.check {
  display: flex; align-items: center; gap: 8px; font-size: .87rem; font-weight: 400;
  color: var(--ink-700); background: var(--white); border: 1px solid var(--ink-200);
  border-radius: var(--r-sm); padding: 8px 11px; cursor: pointer; margin: 0;
}
.check:hover { border-color: var(--ink-400); }
.check input { width: auto; margin: 0; accent-color: var(--accent-600); box-shadow: none; border: none; padding: 0; }
.check:has(input:checked) { border-color: var(--accent-500); background: var(--accent-100); color: var(--accent-700); font-weight: 500; }

.flash { padding: 13px 16px; border-radius: var(--r); margin: 16px 0; font-size: .91rem; border: 1px solid; }
.flash--success { background: var(--green-100); border-color: #A6F4C5; color: var(--green-700); }
.flash--error { background: var(--red-100); border-color: #FECDCA; color: var(--red-700); }

/* ------------------------------------------------------------ search page */

.filters { position: sticky; top: var(--header-h); z-index: 100; background: var(--white); border-bottom: 1px solid var(--ink-200); padding: 12px 0; }
.filter-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filter-row input[type=search] { flex: 1 1 210px; min-width: 170px; }
.filter-row select { width: auto; min-width: 122px; }
.filter-more {
  background: var(--white); border: 1px solid var(--ink-300); border-radius: var(--r);
  padding: 10px 15px; font-size: .9rem; font-weight: 600; cursor: pointer;
  color: var(--ink-800); box-shadow: var(--sh-xs);
}
.filter-more:hover { border-color: var(--ink-400); background: var(--ink-50); }
.filter-panel { display: none; margin-top: 12px; padding: 20px; background: var(--ink-50); border: 1px solid var(--ink-200); border-radius: var(--r-lg); }
.filter-panel.is-open { display: block; }

.search-layout { display: grid; grid-template-columns: 1fr; }
@media (min-width: 1120px) {
  .search-layout { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
  .search-map { position: sticky; top: calc(var(--header-h) + 63px); height: calc(100vh - var(--header-h) - 63px); }
}
.search-results { padding: 22px 0 52px; }
.search-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.search-meta h1 { font-size: 1.5rem; margin: 0; }
.search-meta p { margin: 3px 0 0; color: var(--ink-500); font-size: .89rem; }

.search-map { background: var(--ink-100); border-inline-start: 1px solid var(--ink-200); position: relative; min-height: 420px; }
#map { width: 100%; height: 100%; min-height: 420px; }
.map-note {
  position: absolute; bottom: 12px; inset-inline-start: 12px; z-index: 400;
  background: rgba(255,255,255,.95); border: 1px solid var(--ink-200); border-radius: var(--r-sm);
  padding: 6px 10px; font-size: .74rem; color: var(--ink-600); box-shadow: var(--sh-sm);
}
.pin {
  background: var(--ink-900); color: #fff; font-size: .74rem; font-weight: 700;
  padding: 5px 9px; border-radius: var(--r-sm); white-space: nowrap;
  border: 2px solid #fff; box-shadow: var(--sh-md); cursor: pointer;
}
.pin:hover, .pin.is-active { background: var(--accent-600); }

.empty { text-align: center; padding: 60px 20px; background: var(--ink-50); border: 1px dashed var(--ink-300); border-radius: var(--r-lg); }
.empty > svg { width: 34px; height: 34px; color: var(--ink-400); margin: 0 auto 14px; }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 38px; text-align: center; padding: 8px 11px; border-radius: var(--r-sm);
  border: 1px solid var(--ink-200); background: #fff; font-size: .89rem; color: var(--ink-700);
}
.pagination a:hover { border-color: var(--ink-400); text-decoration: none; }
.pagination .is-current { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }

/* --------------------------------------------------------- listing detail */

.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; border-radius: var(--r-lg); overflow: hidden; margin-bottom: 30px; }
.gallery > *:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.gallery > *:first-child img { aspect-ratio: 3/2; }
/* Project page: plan and 3D tiles under the gallery. */
.np-media-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin: 16px 0 8px; }
.np-tile { position: relative; display: flex; flex-direction: column; border: 1px solid var(--ink-200); border-radius: var(--r-lg); overflow: hidden; background: #fff; color: var(--ink-950); text-decoration: none; transition: box-shadow .2s ease, transform .2s ease; }
.np-tile:hover { box-shadow: 0 8px 24px rgba(10,17,25,.10); transform: translateY(-1px); text-decoration: none; }
.np-tile img { width: 100%; height: 200px; object-fit: contain; background: #fff; display: block; }
.np-tile-tag { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 1; background: rgba(10,17,25,.88); color: #fff; border-radius: 999px; padding: 6px 12px; font-size: .82rem; font-weight: 600; }
.np-tile-body { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-top: 1px solid var(--ink-200); }
.np-tile-body b { font-family: var(--f-display); font-size: 1.02rem; }
.np-tile-body span { color: var(--ink-500); font-size: .9rem; }
.np-tile--3d .np-tile-3d { display: grid; place-items: center; height: 200px; background: var(--ink-100); color: var(--zellige-600); }
.np-tile--3d .np-tile-3d svg { width: 72px; height: 72px; }
.np-tile--3d .np-tile-body { border-top: 1px solid var(--ink-200); }
/* Full-screen photo viewer: swipe, arrows, keyboard, and an all-photos grid. */
.pg { position: fixed; inset: 0; z-index: 400; background: #0A1119; color: #fff; display: flex; flex-direction: column; }
.pg[hidden], .pg-grid[hidden] { display: none !important; }
.pg-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px; }
.pg-count { font-size: .95rem; font-weight: 600; opacity: .9; font-variant-numeric: tabular-nums; }
.pg-actions { display: flex; gap: 8px; align-items: center; }
.pg-btn { background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 999px; padding: 9px 16px; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.pg-btn:hover { background: rgba(255,255,255,.22); }
.pg-close { width: 40px; height: 40px; padding: 0; font-size: 1.6rem; line-height: 1; }
.pg-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.pg-track { display: flex; height: 100%; transition: transform .35s ease; touch-action: pan-y; user-select: none; }
.pg-slide { flex: 0 0 100%; margin: 0; height: 100%; display: flex; align-items: center; justify-content: center; padding: 0 12px; }
.pg-slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; pointer-events: none; }
.pg-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.pg-nav:hover { background: rgba(255,255,255,.26); }
.pg-prev { inset-inline-start: 16px; }
.pg-next { inset-inline-end: 16px; }
.pg-grid { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; padding: 8px 16px 32px; align-content: start; }
.pg-thumb { border: 0; padding: 0; background: #1b2633; border-radius: 8px; overflow: hidden; cursor: pointer; aspect-ratio: 4 / 3; }
.pg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.pg-thumb:hover img { transform: scale(1.03); }
@media (hover: none) { .pg-nav { display: none; } }
@media (max-width: 640px) { .pg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Listing detail sections, icon-led (reference design). */
.pinfo { border-top: 1px solid var(--ink-200); padding: 36px 0 8px; }
.pinfo-h { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; font-family: 'Newsreader', Georgia, serif; font-weight: 500; font-size: 1.9rem; letter-spacing: -0.01em; color: var(--ink-950); line-height: 1.2; }
.pinfo-ico { display: inline-flex; color: var(--zellige-600); }
.pinfo-ico svg, .pinfo-ico > * { width: 30px; height: 30px; }
.pinfo-rows { display: grid; gap: 0; }
.pinfo-row { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--ink-100); }
.pinfo-row:first-child { border-top: 0; padding-top: 0; }
.pinfo-label { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; color: var(--ink-950); font-size: 1rem; }
.pinfo-row-ico { display: inline-flex; color: var(--ink-700); margin-top: 1px; }
.pinfo-row-ico svg { width: 20px; height: 20px; }
.pinfo-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px 28px; }
.pinfo-items small { display: block; color: var(--ink-500); font-size: .9rem; margin-bottom: 4px; }
.pinfo-items b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; color: var(--ink-950); }
.pfeat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.pfeat-grid li { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 118px; padding: 20px 14px; border: 1px solid var(--ink-200); border-radius: var(--r-lg); background: #fff; text-align: center; font-size: .97rem; color: var(--ink-800); }
.pfeat-ico { display: inline-flex; color: var(--ink-800); }
.pfeat-ico svg { width: 28px; height: 28px; }
.pd-row b, .pd-total b { font-family: var(--f-display); }
@media (max-width: 640px) {
  .pinfo-h { font-size: 1.6rem; }
  .pinfo-row { grid-template-columns: 1fr; gap: 10px; }
  .pfeat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Listing detail sections: information rows, feature tiles, price breakdown. */
.sec-h { font-size: 1.35rem; margin: 0 0 16px; }
.info-list { margin: 0; display: grid; gap: 0; }
.info-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--ink-200); }
.info-row:first-child { border-top: 0; padding-top: 0; }
.info-row dt { font-weight: 600; color: var(--ink-950); }
.info-row dd { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px 24px; }
.info-row dd span { display: grid; gap: 2px; }
.info-row small { color: var(--ink-500); font-size: .85rem; }
.info-row b { font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; color: var(--ink-950); }
.feat-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.feat-tiles li { border: 1px solid var(--ink-200); border-radius: var(--r-lg); padding: 14px 16px; text-align: center; font-size: .95rem; color: var(--ink-800); background: #fff; }
.pd-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-top: 1px solid var(--ink-200); }
.pd-row:first-of-type { border-top: 0; padding-top: 0; }
.pd-row b { font-family: var(--f-display); font-size: 1.4rem; color: var(--ink-950); }
.pd-sub { font-size: .95rem; color: var(--ink-700); }
.pd-total { border-top: 1px solid var(--ink-300); margin-top: 6px; padding-top: 18px; }
.pd-total span { font-weight: 600; }
.pd-note { font-size: .82rem; color: var(--ink-500); margin: 12px 0 0; }
/* Détail du prix (listing page): expandable acquisition costs. */
.cl .pinfo-h { margin-bottom: 18px; }
.cl-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--ink-200); }
.cl-row:first-of-type { border-top: 0; }
.cl-main { font-size: 1.02rem; color: var(--ink-800); }
.cl-main b { font-family: var(--f-display); font-size: 1.25rem; color: var(--ink-950); font-weight: 600; }
.cl-sub { padding: 11px 0; font-size: .95rem; color: var(--ink-700); }
.cl-sub span:last-child { font-weight: 600; color: var(--ink-900); white-space: nowrap; }
.cl-total { border-top: 1px solid var(--ink-300); margin-top: 8px; padding-top: 20px; }
.cl-total span { font-size: 1.02rem; color: var(--ink-800); }
.cl-total b { font-family: var(--f-display); font-size: 1.45rem; color: var(--ink-950); }
.cl-group { border-top: 1px solid var(--ink-200); }
.cl-group > summary { list-style: none; cursor: pointer; }
.cl-group > summary::-webkit-details-marker { display: none; }
.cl-group > summary:focus-visible { outline: 2px solid var(--zellige-600); outline-offset: 4px; border-radius: 6px; }
.cl-sum { display: flex; align-items: center; gap: 8px; }
.cl-chev { color: var(--ink-700); transition: transform .2s ease; }
.cl-group[open] > summary .cl-chev { transform: rotate(180deg); }
.cl-info { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-inline-start: 6px; border: 1.3px solid var(--ink-400); border-radius: 50%; font-size: .7rem; font-style: normal; color: var(--ink-500); vertical-align: middle; cursor: help; }
@media (prefers-reduced-motion: reduce) { .cl-chev { transition: none; } }
@media (max-width: 640px) { .info-row { grid-template-columns: 1fr; gap: 8px; } .feat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Gallery openers */
.gallery [data-pg-open] { cursor: zoom-in; }
.gallery [data-pg-open]:focus-visible { outline: 3px solid var(--zellige-600); outline-offset: -3px; }

/* Listing header, Zillow-style: price and key stats on one row, title
   below at a smaller size, icon-free fact cards. */
.zh-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 28px; flex-wrap: wrap; margin-top: 8px; }
.zh-price-main { display: block; font-family: var(--f-display); font-size: 2.6rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; color: var(--ink-950); }
.zh-unit { font-family: var(--font-body); font-size: 1rem; font-weight: 400; color: var(--ink-500); }
.zh-ppm2 { display: block; margin-top: 6px; color: var(--ink-500); font-size: .95rem; }
.zh-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.zh-stats b { display: block; font-family: var(--f-display); font-size: 1.9rem; font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: var(--ink-950); }
.zh-stats span { color: var(--ink-500); font-size: .95rem; }
.zh-title { font-size: 1.4rem; font-weight: 600; line-height: 1.3; margin: 16px 0 6px; letter-spacing: -0.01em; }
.zh-loc { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--ink-500); font-size: .98rem; margin: 0; }
.zh-dot { color: var(--ink-300); }
.zh-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.zh-est { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin: 16px 0 0; padding: 12px 16px; background: var(--ink-100); border-radius: var(--r-lg); color: var(--ink-950); text-decoration: none; font-size: .95rem; }
.zh-est:hover { text-decoration: none; background: var(--ink-200); }
.zh-est b { font-family: var(--f-display); font-size: 1.1rem; }
.zh-est-link { margin-inline-start: auto; color: var(--zellige-600); font-weight: 600; }
/* Facts as grey cards, Zillow-style. */
.facts-grid { background: transparent; border: 0; border-radius: 0; gap: 8px; margin: 22px 0 0; overflow: visible; }
.fact { background: var(--ink-100); border-radius: var(--r-lg); box-shadow: none; padding: 16px 18px; }
/* Listing page: sticky section tabs (Zillow-style) and anchor offsets. */
.listing-tabs {
  position: sticky; top: var(--header-h); z-index: 100; background: #fff;
  border-bottom: 1px solid var(--ink-200); display: flex; gap: 6px;
  overflow-x: auto; scrollbar-width: none; margin-top: 12px;
  box-shadow: 0 1px 0 var(--ink-200);
}
.listing-tabs::-webkit-scrollbar { display: none; }
.listing-tabs a {
  padding: 14px 12px; white-space: nowrap; color: var(--ink-600); font-weight: 500;
  font-size: .95rem; text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.listing-tabs a:hover { color: var(--ink-950); border-bottom-color: var(--ink-300); text-decoration: none; }
.listing-tabs a.is-active { color: var(--ink-950); font-weight: 600; border-bottom-color: var(--zellige-600); }
.listing-tabs a:focus-visible { outline: 2px solid var(--zellige-600); outline-offset: -2px; }
.anchor { display: block; height: 0; scroll-margin-top: 140px; }
.gallery-cell { position: relative; }
.gallery-all { position: absolute; inset-inline-end: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; background: var(--white); color: var(--ink-950); border-radius: var(--r); padding: 9px 14px; font-weight: 600; font-size: .88rem; text-decoration: none; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.gallery-all:hover { background: var(--ink-100); text-decoration: none; }
@media (max-width: 720px) { .gallery { grid-template-columns: 1fr; } .gallery > *:first-child { grid-row: auto; } .gallery > *:nth-child(n+3) { display: none; } }

.listing-layout { display: grid; gap: 34px; align-items: start; }
@media (min-width: 1000px) { .listing-layout { grid-template-columns: minmax(0, 1fr) 356px; } }

.price-block { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price-main { font-family: var(--f-display); font-size: clamp(2rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.04em; }
.price-sub { color: var(--ink-500); font-size: .94rem; }

.facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(122px, 1fr)); gap: 1px; background: var(--ink-200); border: 1px solid var(--ink-200); border-radius: var(--r-lg); overflow: hidden; margin: 26px 0; }
.fact { background: #fff; padding: 14px 16px; }
.fact dt { font-size: .75rem; color: var(--ink-500); margin-bottom: 4px; }
.fact dd { margin: 0; font-size: 1.02rem; font-weight: 700; font-family: var(--f-display); letter-spacing: -0.02em; }
/* Facts grid: white background, so an unused trailing cell is not grey;
   dividers drawn per cell. */
.facts-grid { background: #fff; gap: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 22px; }
@media (max-width: 640px) { .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fact { box-shadow: inset -1px -1px 0 var(--ink-200); padding: 16px 18px; }
.fact dt { font-size: .8rem; }
.fact dd { font-size: 1.1rem; }

/* Mobile sticky contact bar (listing page). Hidden on desktop, where the
   contact card sits in the sidebar. */
.np-sticky { display: none; }
@media (max-width: 999px) {
  .np-sticky {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: #fff; border-top: 1px solid var(--ink-200);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .np-sticky-price { display: flex; flex-direction: column; line-height: 1.2; }
  .np-sticky-price span { font-size: .78rem; color: var(--ink-500); }
  .np-sticky-price b { font-family: var(--f-display); font-size: 1.1rem; letter-spacing: -0.02em; }
  .np-sticky .btn { white-space: nowrap; }
  body:has(.np-sticky) { padding-bottom: 84px; }
}

.panel { background: var(--white); border: 1px solid var(--ink-200); border-radius: var(--r-lg); padding: 22px; margin-bottom: 20px; }
.panel h3 { margin-bottom: 12px; }
.panel--gray { background: var(--ink-50); }
.panel--accent { background: var(--accent-100); border-color: var(--accent-200); }

.callout { display: flex; gap: 13px; align-items: flex-start; }
.callout > svg { width: 20px; height: 20px; color: var(--blue-700); margin-top: 3px; flex: 0 0 auto; }
.callout p { margin: 4px 0 0; font-size: .9rem; color: var(--ink-700); }

.feature-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.feature-list li { font-size: .86rem; background: var(--ink-100); border-radius: var(--r-sm); padding: 6px 11px; color: var(--ink-700); }

/* Sits below the sticky section tabs (~52px tall) with a small gap. */
.agent-card { position: sticky; top: calc(var(--header-h) + 72px); margin-top: 18px; }
.agent-head { display: flex; gap: 13px; align-items: center; margin-bottom: 16px; }
.agent-head strong { display: block; font-size: 1rem; }
.agent-head span { font-size: .84rem; color: var(--ink-500); }
.agent-metrics { display: flex; gap: 18px; font-size: .78rem; color: var(--ink-500); margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--ink-100); }
.agent-metrics strong { display: block; color: var(--ink-950); font-size: .98rem; font-family: var(--f-display); font-weight: 700; }

.estimate-band { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; }
.estimate-bar { flex: 1; height: 7px; background: var(--ink-200); border-radius: 999px; position: relative; overflow: hidden; }
.estimate-fill { position: absolute; top: 0; bottom: 0; background: var(--accent-500); border-radius: 999px; }
.comp-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.comp-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-500); font-weight: 700; padding: 7px 8px; border-bottom: 1px solid var(--ink-200); }
.comp-table td { padding: 8px; border-bottom: 1px solid var(--ink-100); }

/* -------------------------------------------------------------- calculator */

.calc-layout { display: grid; gap: 28px; align-items: start; }
@media (min-width: 920px) { .calc-layout { grid-template-columns: minmax(0, 1fr) 388px; } }

.range-field { margin-bottom: 22px; }
.range-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.range-head label { margin: 0; }
.range-value { font-family: var(--f-display); font-size: 1rem; font-weight: 700; color: var(--accent-600); letter-spacing: -0.02em; }

.result-card { background: var(--ink-950); color: #fff; border-radius: var(--r-xl); padding: 28px; position: sticky; top: calc(var(--header-h) + 20px); }
.result-card h3 { color: rgba(255,255,255,.6); font-size: .74rem; font-family: var(--f-body); font-weight: 700; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 10px; }
.result-main { font-family: var(--f-display); font-size: clamp(2.1rem, 3.6vw, 2.7rem); font-weight: 800; letter-spacing: -0.042em; line-height: 1; }
.result-main span { font-size: .88rem; font-family: var(--f-body); font-weight: 400; opacity: .6; letter-spacing: 0; }
.result-rows { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); }
.result-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: .88rem; }
.result-row span:first-child { color: rgba(255,255,255,.66); }
.result-row strong { font-weight: 600; }
.result-note { margin-top: 18px; padding: 13px 15px; background: rgba(255,255,255,.07); border-radius: var(--r); font-size: .82rem; line-height: 1.5; color: rgba(255,255,255,.86); }
.result-note.is-warn { background: rgba(240,78,35,.22); color: #FFD3C4; }

/* ------------------------------------------------------------ agent tiles */

.agent-tile { background: var(--white); border: 1px solid var(--ink-200); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 14px; transition: box-shadow .16s, border-color .16s; }
.agent-tile:hover { box-shadow: var(--sh-md); border-color: var(--ink-300); }
.agent-tile-head { display: flex; gap: 13px; align-items: flex-start; }
.agent-tile-head h3 { margin: 0 0 3px; font-size: 1.02rem; }
.agent-tile-stats { display: flex; gap: 18px; padding-top: 13px; border-top: 1px solid var(--ink-100); font-size: .76rem; color: var(--ink-500); margin-top: auto; }
.agent-tile-stats strong { display: block; font-family: var(--f-display); font-size: 1rem; font-weight: 700; color: var(--ink-950); letter-spacing: -0.02em; }
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: .74rem; padding: 3px 9px; border-radius: var(--r-sm); background: var(--ink-100); color: var(--ink-700); }

/* -------------------------------------------------------------- dashboard */

.dash { display: grid; grid-template-columns: 1fr; min-height: calc(100vh - var(--header-h)); }
@media (min-width: 1000px) { .dash { grid-template-columns: 248px minmax(0, 1fr); } }

.dash-side { background: var(--white); border-inline-end: 1px solid var(--ink-200); padding: 24px 16px; }
.dash-side-label { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-400); padding: 0 10px; margin: 24px 0 8px; }
.dash-side-label:first-child { margin-top: 0; }
.dash-nav { display: flex; flex-direction: column; gap: 2px; }
.dash-nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: var(--r-sm); color: var(--ink-700); font-size: .91rem; font-weight: 500; }
.dash-nav a:hover { background: var(--ink-100); text-decoration: none; }
.dash-nav a.is-active { background: var(--ink-900); color: #fff; }
.dash-nav .count { font-size: .72rem; font-weight: 600; background: var(--ink-100); color: var(--ink-700); padding: 1px 7px; border-radius: 999px; }
.dash-nav a.is-active .count { background: rgba(255,255,255,.2); color: #fff; }
.dash-nav-row { display: flex; align-items: center; gap: 2px; }
.dash-nav-row a { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-nav-row form { flex: 0 0 auto; }
.dash-nav-row-del {
  width: 24px; height: 24px; border: none; background: none; color: var(--ink-400);
  font-size: 1rem; line-height: 1; border-radius: var(--r-sm); cursor: pointer;
}
.dash-nav-row-del:hover { background: var(--ink-100); color: var(--ink-700); }

.wa-templates { position: relative; display: inline-block; }
.wa-templates summary { list-style: none; }
.wa-templates summary::-webkit-details-marker { display: none; }
.wa-templates-list {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 240px;
  background: #fff; border: 1px solid var(--ink-200); border-radius: var(--r);
  box-shadow: 0 10px 30px rgba(0,0,0,.12); padding: 6px; display: flex; flex-direction: column; gap: 2px;
}
.wa-templates-list a {
  display: block; padding: 9px 11px; border-radius: var(--r-sm); color: var(--ink-700);
  font-size: .89rem; font-weight: 500; white-space: nowrap;
}
.wa-templates-list a:hover { background: var(--ink-100); text-decoration: none; }

.dash-main { padding: 28px 26px 60px; min-width: 0; background: var(--ink-50); }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.dash-head h1 { font-size: 1.75rem; margin: 0; }
.dash-head p { margin: 5px 0 0; color: var(--ink-500); font-size: .91rem; }

.tier-card { background: var(--ink-50); border: 1px solid var(--ink-200); border-radius: var(--r); padding: 14px; margin-top: 20px; }
.tier-card strong { display: block; font-family: var(--f-display); font-size: 1rem; font-weight: 700; }
.tier-card span { font-size: .78rem; color: var(--ink-500); }
.quota-bar { height: 5px; background: var(--ink-200); border-radius: 999px; margin: 9px 0 6px; overflow: hidden; }
.quota-fill { height: 100%; background: var(--accent-500); border-radius: 999px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(172px, 1fr)); gap: 14px; margin-bottom: 28px; }

/* ------------------------------------------------------------------ CRM */
/* Filter toolbar — was raw <select> elements inheriting the global
   select{width:100%} rule, so each one stretched full-width and stacked.
   Same fix pattern as .toolbar: shrink to content, sit in a row. */
.crm-filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.crm-filters input, .crm-filters select { width: auto; min-width: 150px; }
.crm-filters input, .crm-filters select {
  border: 1px solid var(--ink-200); border-radius: var(--r); padding: 9px 12px;
  font-size: .88rem; color: var(--ink-800); background: var(--white);
}
.crm-filters input:focus, .crm-filters select:focus { outline: none; border-color: var(--accent-500, var(--accent-600)); }

/* Add-prospect disclosure */
.crm-card { background: var(--white); border: 1px solid var(--ink-200); border-radius: var(--r-lg); padding: 16px 18px; }
.crm-card summary::-webkit-details-marker { display: none; }
.crm-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.crm-form .full { grid-column: 1 / -1; }
.crm-form label { display: flex; flex-direction: column; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--ink-600); }
.crm-form input, .crm-form select, .crm-form textarea {
  width: 100%; border: 1px solid var(--ink-200); border-radius: var(--r); padding: 9px 11px;
  font-size: .9rem; font-weight: 400; color: var(--ink-900); background: var(--white); font-family: inherit;
}
.crm-form input:focus, .crm-form select:focus, .crm-form textarea:focus { outline: none; border-color: var(--accent-500, var(--accent-600)); }

/* Kanban board */
.crm-k { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; margin-top: 18px; scroll-snap-type: x proximity; }
.k-col {
  flex: 0 0 280px; scroll-snap-align: start; background: var(--ink-50); border: 1px solid var(--ink-200);
  border-radius: var(--r-lg); display: flex; flex-direction: column; max-height: calc(100vh - 340px); min-height: 220px;
}
.k-col.is-over { border-color: var(--accent-500, var(--accent-600)); background: var(--accent-50, var(--ink-100)); }
.k-col header { display: flex; align-items: center; gap: 8px; padding: 14px 14px 10px; }
.k-col header b { font-size: .92rem; font-weight: 700; color: var(--ink-900); }
.k-col header small { margin-inline-start: auto; font-size: .76rem; color: var(--ink-500); font-weight: 600; }
.k-dot { width: 8px; height: 8px; border-radius: 999px; flex: 0 0 auto; }
.k-count { font-size: .74rem; font-weight: 700; color: var(--ink-500); background: var(--white); border: 1px solid var(--ink-200); border-radius: 999px; padding: 1px 8px; }
.k-list { display: flex; flex-direction: column; gap: 10px; padding: 0 10px 12px; overflow-y: auto; flex: 1; }

.k-card {
  background: var(--white); border: 1px solid var(--ink-200); border-radius: var(--r); padding: 12px 13px;
  display: flex; flex-direction: column; gap: 6px; cursor: grab; box-shadow: var(--sh-sm, 0 1px 2px rgba(16,24,40,.05));
  transition: box-shadow .14s, border-color .14s;
}
.k-card:hover { border-color: var(--ink-300); box-shadow: var(--sh-md, 0 4px 10px rgba(16,24,40,.08)); }
.k-card.dragging { opacity: .45; }
.k-name { font-size: .92rem; font-weight: 700; color: var(--ink-900); }
.k-name:hover { text-decoration: underline; }
.k-sub { font-size: .78rem; color: var(--ink-500); }
.k-sub b { color: var(--ink-800); }
.k-task { font-size: .76rem; color: var(--ink-600); background: var(--ink-50); border-radius: var(--r-sm); padding: 5px 8px; margin-top: 2px; }
.k-task.is-late { background: var(--red-100); color: var(--red-700); }
.k-move {
  margin-top: 4px; width: 100%; border: 1px solid var(--ink-200); border-radius: var(--r-sm);
  padding: 6px 8px; font-size: .78rem; font-weight: 600; color: var(--ink-700); background: var(--white);
}

.temp { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; width: fit-content; }
.temp--hot { background: var(--red-100); color: var(--red-700); }
.temp--warm { background: var(--amber-100); color: var(--amber-700); }
.temp--cold { background: var(--blue-100); color: var(--blue-700); }

/* ---------------------------------------------------- CRM lead detail */
.crm-card h2 { font-size: .98rem; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 14px; color: var(--ink-900); }
.crm-card + .crm-card { margin-top: 18px; }
.crm-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; margin-top: 18px; }
@media (max-width: 920px) { .crm-grid { grid-template-columns: 1fr; } }

/* Activity timeline — a real vertical-line feed instead of a bare <ul>,
   with a colored dot per interaction type so the channel is scannable
   at a glance (WhatsApp vs call vs system stage-change, etc). */
.tl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tl li {
  position: relative; padding: 0 0 18px 24px; border-inline-start: 2px solid var(--ink-200);
  font-size: .88rem; color: var(--ink-700); line-height: 1.5;
}
.tl li:last-child { border-color: transparent; padding-bottom: 0; }
.tl li::before {
  content: ''; position: absolute; left: -6px; top: 3px; width: 10px; height: 10px;
  border-radius: 999px; background: var(--ink-400); border: 2px solid var(--white); box-shadow: 0 0 0 1px var(--ink-200);
}
.tl li b { display: block; font-weight: 700; color: var(--ink-900); margin-bottom: 2px; }
.tl li small { display: block; color: var(--ink-500); font-size: .76rem; margin-top: 3px; }
.tl li.t-whatsapp::before { background: var(--green-700, #05603A); }
.tl li.t-call::before { background: var(--blue-700); }
.tl li.t-email::before { background: var(--accent-600); }
.tl li.t-visit::before { background: var(--amber-700); }
.tl li.t-system::before { background: var(--ink-400); }
.tl li.t-note::before { background: var(--ink-600); }

/* CRM calendar — week-at-a-glance follow-ups (Follow Up Boss's Calendar) */
.cal-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.cal-week { display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); gap: 10px; overflow-x: auto; }
.cal-day { background: var(--white); border: 1px solid var(--ink-200); border-radius: var(--r-lg); min-height: 220px; display: flex; flex-direction: column; }
.cal-day.is-today { border-color: var(--accent-600); box-shadow: 0 0 0 1px var(--accent-600); }
.cal-day header { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 12px; border-bottom: 1px solid var(--ink-100); }
.cal-day header b { font-size: .82rem; color: var(--ink-900); }
.cal-day header span { font-size: .76rem; color: var(--ink-500); }
.cal-day.is-today header b { color: var(--accent-700); }
.cal-day-list { display: flex; flex-direction: column; gap: 8px; padding: 10px; flex: 1; }
.cal-task { background: var(--ink-50); border-radius: var(--r-sm); padding: 8px 9px; display: flex; flex-direction: column; gap: 4px; font-size: .78rem; position: relative; }
.cal-task .k-name { font-size: .84rem; }
.cal-task .temp { align-self: flex-start; }
.cal-task form { position: absolute; top: 6px; right: 6px; }
.cal-task form .btn { padding: 2px 7px; }
@media (max-width: 1100px) { .cal-week { grid-template-columns: repeat(7, 150px); } }

/* CRM smart lists — saved-segment quick filters above the pipeline filters */
.crm-smartlists { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip-link {
  display: inline-flex; align-items: center; border: 1px solid var(--ink-200); border-radius: 999px;
  padding: 7px 14px; font-size: .84rem; font-weight: 600; color: var(--ink-700); background: var(--white);
}
.chip-link:hover { border-color: var(--ink-300); background: var(--ink-50); text-decoration: none; }
.chip-link.is-active { background: var(--accent-100); border-color: var(--accent-100); color: var(--accent-700); }
.k-task.is-auto { border-inline-start: 2px solid var(--accent-500, var(--accent-600)); padding-inline-start: 6px; }
.stat { background: var(--white); border: 1px solid var(--ink-200); border-radius: var(--r-lg); padding: 18px; }
.stat dt { font-size: .77rem; color: var(--ink-500); margin-bottom: 7px; }
.stat dd { margin: 0; font-family: var(--f-display); font-size: 1.85rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.stat .delta { font-size: .76rem; color: var(--ink-500); margin-top: 7px; }
.stat--accent { background: var(--ink-950); border-color: var(--ink-950); }
.stat--accent dt { color: rgba(255,255,255,.62); }
.stat--accent dd { color: #fff; }
.stat--accent .delta { color: rgba(255,255,255,.6); }
.stat--warn { background: var(--amber-100); border-color: #FEDF89; }

.bar-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.bar-list li { display: grid; grid-template-columns: 110px 1fr 46px; gap: 11px; align-items: center; font-size: .86rem; }
.bar-track { height: 8px; background: var(--ink-200); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--accent-500); border-radius: 999px; }
.bar-list .num { text-align: right; color: var(--ink-500); font-size: .82rem; }

/* ----------------------------------------------------------------- tables */

.table-wrap { background: var(--white); border: 1px solid var(--ink-200); border-radius: var(--r-lg); overflow: hidden; }
.table-head { padding: 15px 16px; border-bottom: 1px solid var(--ink-200); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.table-head h3 { margin: 0; font-size: 1rem; }
.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.data th {
  text-align: left; font-size: .7rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-500); padding: 11px 14px;
  background: var(--ink-50); border-bottom: 1px solid var(--ink-200); white-space: nowrap;
}
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--ink-100); vertical-align: middle; }
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: var(--ink-50); }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }
.ref { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .79rem; color: var(--ink-500); }
.cell-title { display: block; font-weight: 600; margin-bottom: 2px; color: var(--ink-900); }
.cell-sub { font-size: .8rem; color: var(--ink-500); }

.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar input, .toolbar select { width: auto; min-width: 134px; }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: .84rem; font-weight: 500; padding: 7px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--ink-200); color: var(--ink-700); }
.chip:hover { border-color: var(--ink-400); text-decoration: none; }
.chip.is-active { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }

.inline-form { display: inline-flex; gap: 6px; align-items: center; }
.inline-form select { min-width: 152px; padding: 6px 28px 6px 10px; font-size: .83rem; }

.review { display: grid; gap: 18px; background: var(--white); border: 1px solid var(--ink-200); border-radius: var(--r-lg); padding: 18px; margin-bottom: 16px; }
@media (min-width: 820px) { .review { grid-template-columns: 214px minmax(0, 1fr) 222px; align-items: start; } }
.review img { border-radius: var(--r); }
.review-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.review-checks { list-style: none; margin: 12px 0 0; padding: 0; font-size: .84rem; color: var(--ink-700); display: flex; flex-direction: column; gap: 6px; }
.review-checks li { display: flex; gap: 8px; align-items: flex-start; }
.review-checks .ok { color: var(--green-600); }
.review-checks .no { color: var(--red-600); }
.review-actions { display: flex; flex-direction: column; gap: 8px; }

/* ----------------------------------------------------------------- footer */

.site-footer { background: var(--ink-950); color: var(--ink-300); padding: 52px 0 28px; }
.site-footer a { color: var(--ink-300); font-size: .89rem; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 34px; margin-bottom: 34px; }
.footer-grid h4 { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 13px; color: var(--ink-400); font-family: var(--f-body); font-weight: 600; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .81rem; color: var(--ink-500); }
.footer-logo { display: flex; align-items: center; gap: 9px; color: #fff; margin-bottom: 14px; }
.footer-logo .mark { width: 26px; height: 26px; }
.footer-logo span { font-family: var(--f-display); font-size: 1.2rem; font-weight: 800; letter-spacing: -0.04em; }

/* ------------------------------------------------------------------- auth */

.auth-shell { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; padding: 52px 20px; background: var(--ink-50); }
.auth-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--ink-200); border-radius: var(--r-xl); padding: 34px; box-shadow: var(--sh-lg); }
.auth-card .mark { width: 34px; height: 34px; margin-bottom: 18px; }
.demo-creds { margin-top: 22px; padding: 14px; background: var(--ink-50); border: 1px solid var(--ink-200); border-radius: var(--r); font-size: .82rem; color: var(--ink-700); }
.demo-creds code { font-family: ui-monospace, Menlo, monospace; font-size: .79rem; }

/* -------------------------------------------------------------- responsive */

@media (max-width: 999px) {
  .shell { padding-inline-start: 0; padding-bottom: 62px; }
  .rail {
    inset-block: auto 0; inset-inline: 0; width: 100%; height: 62px;
    flex-direction: row; justify-content: space-around; align-items: center;
    border-inline-end: none; border-top: 1px solid var(--ink-200); padding: 4px 0;
  }
  .rail-item { padding: 6px 4px; font-size: .64rem; }
  .rail-item svg { width: 19px; height: 19px; }
  .rail-sep { display: none; }
  .header-inner { display: flex; justify-content: space-between; }
  .nav { display: none; position: absolute; top: var(--header-h); inset-inline: 0; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--ink-200); padding: 10px; gap: 2px; box-shadow: var(--sh-lg); }
  .nav.is-open { display: flex; }
  .nav--right { display: none; }
  .nav-toggle { display: block; }
  .search-map { display: none; }
  .section { padding: 42px 0; }
  .dash-side { border-inline-end: none; border-bottom: 1px solid var(--ink-200); }
}

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

/* page lede on interior pages */
.section-lede { font-size: 1.05rem; color: var(--ink-600); max-width: 54ch; margin-bottom: 0; }

/* ==========================================================================
   Search: fixed map beside an independently scrolling result column
   ========================================================================== */

.srp { position: fixed; inset: var(--header-h) 0 0 var(--rail-w); display: flex; flex-direction: column; overflow: visible; }
[dir=rtl] .srp { inset: var(--header-h) var(--rail-w) 0 0; }
body.is-srp { overflow: hidden; }

.srp-filters { flex: 0 0 auto; background: var(--white); border-bottom: 1px solid var(--ink-200); padding: 12px 16px; position: relative; z-index: 800; overflow: visible; }
/* NOTE: never set overflow-x:auto here — it forces overflow-y to auto too and
   clips the absolutely-positioned .fdrop-panel dropdowns. Wrap instead. */
.srp-filter-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; overflow: visible; }

.srp-search {
  display: flex; align-items: center; gap: 8px; flex: 0 1 330px; min-width: 210px;
  background: #fff; border: 1px solid var(--ink-300); border-radius: var(--r);
  padding: 0 12px; box-shadow: var(--sh-xs);
}
.srp-search input { border: none; box-shadow: none; padding: 9px 0; background: none; font-size: .92rem; }
.srp-search input:focus { box-shadow: none; }
.srp-search svg { width: 17px; height: 17px; color: var(--ink-400); flex: 0 0 auto; }

/* pill dropdown */
.fdrop { position: relative; flex: 0 0 auto; }
.fdrop-btn {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  background: #fff; border: 1px solid var(--ink-300); border-radius: var(--r);
  padding: 9px 14px; font-family: var(--f-body); font-size: .9rem; font-weight: 500;
  color: var(--ink-800); cursor: pointer; box-shadow: var(--sh-xs); transition: border-color .14s, background .14s;
}
.fdrop-btn:hover { border-color: var(--ink-500); }
.fdrop-btn svg.chev { width: 13px; height: 13px; color: var(--ink-500); transition: transform .16s; }
.fdrop.is-open .fdrop-btn { border-color: var(--ink-900); box-shadow: 0 0 0 1px var(--ink-900); }
.fdrop.is-open .fdrop-btn svg.chev { transform: rotate(180deg); }
.fdrop-btn.has-value { border-color: var(--accent-500); background: var(--accent-100); color: var(--accent-700); }
.fdrop-btn .pill-count {
  background: var(--accent-600); color: #fff; font-size: .68rem; font-weight: 700;
  min-width: 17px; height: 17px; border-radius: 999px; display: grid; place-items: center; padding: 0 4px;
}

/* dropdown PANEL — Zillow-style shape/shadow/spacing, our accent color */
.fdrop-panel {
  position: absolute; top: calc(100% + 10px); inset-inline-start: 0; z-index: 900;
  min-width: 320px; background: #fff; border: 1px solid var(--ink-200);
  border-radius: 12px; box-shadow: 0 12px 28px rgba(16,24,40,.16), 0 2px 6px rgba(16,24,40,.08);
  padding: 20px; display: none;
}
.fdrop.is-open .fdrop-panel { display: block; }
.fdrop-panel--wide { min-width: 440px; }
.fdrop-panel--right { inset-inline-start: auto; inset-inline-end: 0; }
.fdrop-label { font-size: .78rem; font-weight: 700; color: var(--ink-500); text-transform: uppercase; letter-spacing: .02em; margin-bottom: 10px; }
.fdrop-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--ink-100); }
.fdrop-foot .btn--ghost { border-radius: 999px; font-weight: 700; text-decoration: underline; border-color: transparent; box-shadow: none; }
.fdrop-foot .btn--primary { border-radius: 999px; background: var(--accent-600); font-weight: 700; padding: 10px 22px; }
.fdrop-foot .btn--primary:hover { background: var(--accent-700); }
.fdrop-range { display: flex; align-items: center; gap: 9px; }
.fdrop-range span { color: var(--ink-400); font-size: .85rem; }
.fdrop-range select, .fdrop-range input {
  border-radius: 999px; border: 1px solid var(--ink-300); padding: 9px 14px; font-weight: 600;
}

.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg button {
  flex: 1 0 auto; min-width: 46px; padding: 9px 13px; border-radius: 999px;
  border: 1px solid var(--ink-300); background: #fff; font-family: var(--f-body);
  font-size: .88rem; font-weight: 600; color: var(--ink-700); cursor: pointer; transition: all .12s;
}
.seg button:hover { border-color: var(--accent-500); }
.seg button[aria-pressed=true] { background: var(--accent-100); border-color: var(--accent-500); color: var(--accent-700); }

.check-grid label.check {
  border-radius: 8px; padding: 8px 10px; transition: background .12s;
}
.check-grid label.check:hover { background: var(--ink-100); }
.check-grid input[type=checkbox] { accent-color: var(--accent-600); width: 17px; height: 17px; }

/* body: map + results */
.srp-body { flex: 1 1 auto; display: flex; min-height: 0; }

.srp-map { flex: 1 1 58%; position: relative; background: var(--ink-100); min-width: 0; }
.srp-map #map { position: absolute; inset: 0; height: 100%; width: 100%; }

.map-badge {
  position: absolute; top: 12px; inset-inline-start: 12px; z-index: 420;
  background: rgba(10,17,25,.82); color: #fff; font-size: .82rem; font-weight: 600;
  padding: 7px 13px; border-radius: var(--r-sm); backdrop-filter: blur(6px); pointer-events: none;
}
.map-redo {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 430;
  background: #fff; color: var(--ink-900); border: 1px solid var(--ink-300);
  border-radius: 999px; padding: 9px 18px; font-family: var(--f-body); font-size: .87rem;
  font-weight: 600; cursor: pointer; box-shadow: var(--sh-lg); display: none;
}
.map-redo.is-visible { display: block; }
.map-toggle-desktop {
  position: absolute; bottom: 16px; inset-inline-start: 12px; z-index: 420;
  background: #fff; border: 1px solid var(--ink-300); border-radius: var(--r);
  padding: 9px 15px; font-family: var(--f-body); font-size: .87rem; font-weight: 600;
  color: var(--ink-800); cursor: pointer; box-shadow: var(--sh-md);
}

.srp-results { flex: 1 1 42%; min-width: 0; overflow-y: auto; background: var(--white); border-inline-start: 1px solid var(--ink-200); }
.srp-results-head { padding: 18px 20px 12px; }
.srp-results-head h1 { font-size: 1.4rem; margin: 0 0 3px; }
.srp-results-head .sub { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--ink-500); font-size: .88rem; }
.srp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(252px, 1fr)); gap: 16px; padding: 0 20px 28px; }
.srp-loading { padding: 40px 20px; text-align: center; color: var(--ink-500); font-size: .9rem; }

.srp-pager { display: flex; gap: 6px; justify-content: center; padding: 0 20px 40px; flex-wrap: wrap; }

/* map is hidden: results take the full width */
.srp.map-hidden .srp-map { display: none; }
.srp.map-hidden .srp-results { flex: 1 1 100%; border-inline-start: none; }
.srp.map-hidden .srp-grid { grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); max-width: 1400px; margin: 0 auto; }

/* mobile: one pane at a time, floating switch */
.srp-switch {
  display: none; position: fixed; bottom: 76px; left: 50%; transform: translateX(-50%); z-index: 130;
  background: var(--ink-900); color: #fff; border: none; border-radius: 999px;
  padding: 12px 22px; font-family: var(--f-body); font-size: .9rem; font-weight: 600;
  cursor: pointer; box-shadow: var(--sh-xl); align-items: center; gap: 8px;
}
.srp-switch svg { width: 16px; height: 16px; }

@media (max-width: 999px) {
  .srp { inset: var(--header-h) 0 62px 0; }
  .srp-switch { display: inline-flex; }
  .srp-map { flex: 1 1 100%; }
  .srp-results { flex: 1 1 100%; border-inline-start: none; }
  .srp:not(.show-map) .srp-map { display: none; }
  .srp.show-map .srp-results { display: none; }
  .srp.show-map .srp-map { display: block; }
  .map-toggle-desktop { display: none; }
  .fdrop-panel { min-width: 268px; max-width: calc(100vw - 32px); }
  .fdrop-panel--wide { min-width: 268px; }
  .srp-search { flex: 1 1 100%; }
}

/* map pins */
.pin-mk {
  background: var(--ink-900); color: #fff; font-size: .73rem; font-weight: 700;
  padding: 4px 9px; border-radius: 999px; white-space: nowrap;
  border: 2px solid #fff; box-shadow: var(--sh-md); cursor: pointer;
  transition: background .12s, transform .12s;
}
.pin-mk:hover, .pin-mk.is-active { background: var(--accent-600); transform: scale(1.08); z-index: 500; }
.pin-mk.is-seen { background: var(--ink-500); }
.pin-cluster {
  background: var(--accent-600); color: #fff; font-size: .8rem; font-weight: 700;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 3px solid #fff; box-shadow: var(--sh-lg); cursor: pointer;
}
.leaflet-popup-content-wrapper { border-radius: var(--r-lg); }
.leaflet-popup-content { margin: 0; width: 232px !important; }
.pop img { width: 100%; height: 130px; object-fit: cover; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.pop-body { padding: 10px 12px 12px; }
.pop-price { font-family: var(--f-display); font-weight: 800; font-size: 1.1rem; letter-spacing: -0.03em; }
.pop-specs { font-size: .82rem; color: var(--ink-700); margin: 3px 0; }
.pop-loc { font-size: .8rem; color: var(--ink-500); }

/* language switcher */
.lang { position: relative; flex: 0 0 auto; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; background: none;
  border: 1px solid var(--ink-300); border-radius: var(--r-sm); padding: 7px 11px;
  font-family: var(--f-body); font-size: .85rem; font-weight: 600; color: var(--ink-700); cursor: pointer;
}
.lang-btn:hover { background: var(--ink-100); }
.lang-menu {
  position: absolute; top: calc(100% + 6px); inset-inline-end: 0; z-index: 140;
  background: #fff; border: 1px solid var(--ink-200); border-radius: var(--r);
  box-shadow: var(--sh-lg); padding: 5px; min-width: 152px; display: none;
}
.lang.is-open .lang-menu { display: block; }
.lang-menu a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 11px; border-radius: var(--r-sm); font-size: .88rem; color: var(--ink-800); font-weight: 500; }
.lang-menu a:hover { background: var(--ink-100); text-decoration: none; }
.lang-menu a.is-active { color: var(--accent-700); background: var(--accent-100); }

/* ==========================================================================
   Estimation: map-first wizard
   ========================================================================== */

.est { position: fixed; inset: var(--header-h) 0 0 var(--rail-w); display: flex; }
[dir=rtl] .est { inset: var(--header-h) var(--rail-w) 0 0; }
body.is-est { overflow: hidden; }

.est-panel { flex: 0 0 470px; max-width: 470px; background: var(--white); border-inline-end: 1px solid var(--ink-200); display: flex; flex-direction: column; overflow-y: auto; }
.est-head { padding: 26px 28px 18px; border-bottom: 1px solid var(--ink-100); }
.est-head h1 { font-size: 1.75rem; margin-bottom: 6px; }
.est-head p { color: var(--ink-500); font-size: .9rem; margin-bottom: 18px; }

.est-steps { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.est-steps li {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px;
  font-size: .7rem; font-weight: 600; color: var(--ink-400); text-align: center;
}
.est-steps li span {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink-100); color: var(--ink-500); font-size: .78rem; font-family: var(--f-display); font-weight: 700;
}
.est-steps li.is-active { color: var(--accent-700); }
.est-steps li.is-active span { background: var(--accent-600); color: #fff; }
.est-steps li.is-done span { background: var(--green-600); color: #fff; }

.est-body { padding: 24px 28px 40px; flex: 1; }
.est-step { display: none; }
.est-step.is-active { display: block; animation: estIn .18s ease-out; }
@keyframes estIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.est-step h2 { font-size: 1.25rem; margin-bottom: 5px; }
.est-hint { font-size: .88rem; color: var(--ink-500); margin-bottom: 18px; }

.est-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.est-choices--sm { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.est-choice {
  padding: 13px 14px; border-radius: var(--r); border: 1px solid var(--ink-200);
  background: #fff; font-family: var(--f-body); font-size: .9rem; font-weight: 500;
  color: var(--ink-700); cursor: pointer; text-align: start; transition: border-color .14s, background .14s;
}
.est-choice:hover { border-color: var(--ink-400); }
.est-choice.is-selected { border-color: var(--accent-500); background: var(--accent-100); color: var(--accent-700); font-weight: 600; }

.est-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--ink-100); }

.est-market { background: var(--ink-50); border: 1px solid var(--ink-200); border-radius: var(--r-lg); padding: 16px; margin-top: 6px; }
.est-market-row { display: flex; gap: 22px; flex-wrap: wrap; }
.est-market-label { display: block; font-size: .74rem; color: var(--ink-500); margin-bottom: 3px; }
.est-market-row strong { font-family: var(--f-display); font-size: 1.08rem; font-weight: 700; letter-spacing: -0.02em; }
.est-market-note { font-size: .8rem; color: var(--ink-500); margin: 10px 0 0; }

.est-map { flex: 1 1 auto; position: relative; background: var(--ink-100); min-width: 0; }
#est-map-canvas { position: absolute; inset: 0; }
.est-map-hint {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 420;
  background: rgba(10,17,25,.85); color: #fff; font-size: .84rem; font-weight: 500;
  padding: 8px 16px; border-radius: 999px; backdrop-filter: blur(6px); pointer-events: none;
}
.est-pin-drop { font-size: 30px; line-height: 1; filter: drop-shadow(0 3px 5px rgba(0,0,0,.3)); }

.est-out-headline { font-family: var(--f-display); font-size: 2.3rem; font-weight: 800; letter-spacing: -0.042em; line-height: 1; margin: 4px 0 6px; }
.est-out-range { display: flex; align-items: center; gap: 10px; margin: 16px 0 8px; }
.est-out-bar { flex: 1; height: 8px; background: var(--ink-200); border-radius: 999px; position: relative; overflow: hidden; }
.est-out-fill { position: absolute; inset-block: 0; background: var(--accent-500); border-radius: 999px; }
.est-adjust { list-style: none; margin: 0; padding: 0; font-size: .85rem; }
.est-adjust li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--ink-100); }
.est-adjust li:last-child { border-bottom: none; }
.est-adjust .up { color: var(--green-600); font-weight: 600; }
.est-adjust .down { color: var(--red-600); font-weight: 600; }
.est-adjust .flat { color: var(--ink-400); }

@media (max-width: 999px) {
  .est { inset: var(--header-h) 0 62px 0; flex-direction: column; }
  .est-panel { flex: 1 1 auto; max-width: none; border-inline-end: none; order: 2; }
  .est-map { flex: 0 0 260px; order: 1; }
}

/* ==========================================================================
   New projects (projets neufs) — list + detail
   ========================================================================== */
.np-hero { padding: 40px 0 8px; }
.np-hero h1 { font-family: var(--f-display); font-weight: 800; letter-spacing: -.02em; margin: 6px 0 8px; }
.np-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 0 6px; }
.np-filters input[type=search], .np-filters select { flex: 1 1 170px; min-width: 0; height: 46px; border: 1px solid var(--ink-300); border-radius: var(--r); padding: 0 14px; background: var(--white); color: var(--ink-800); font: inherit; }
.np-filters input:focus, .np-filters select:focus { outline: 2px solid var(--ink-900); outline-offset: 1px; }
.np-filters .btn { height: 46px; }
.np-switch { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; background: var(--ink-950); color: #fff; border-radius: var(--r); font-weight: 600; cursor: pointer; user-select: none; }
.np-switch input { position: absolute; opacity: 0; }
.np-switch-ui { width: 38px; height: 22px; border-radius: 999px; background: var(--ink-600); position: relative; transition: background .15s; }
.np-switch-ui::after { content: ''; position: absolute; inset-block-start: 3px; inset-inline-start: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.np-switch input:checked + .np-switch-ui { background: var(--accent-500); }
.np-switch input:checked + .np-switch-ui::after { transform: translateX(16px); }
[dir=rtl] .np-switch input:checked + .np-switch-ui::after { transform: translateX(-16px); }
.np-switch input:focus-visible + .np-switch-ui { outline: 2px solid var(--accent-500); outline-offset: 2px; }
.np-count { color: var(--ink-500); font-size: .9rem; margin: 14px 0 16px; }

.np-layout { display: block; margin-bottom: 48px; }
.np-layout.has-map.map-on { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.np-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.np-layout.map-on .np-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.np-map { display: none; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--ink-200); background: var(--ink-100); }
.np-layout.map-on .np-map { display: block; position: sticky; top: calc(var(--header-h) + 16px); height: calc(100vh - var(--header-h) - 40px); min-height: 420px; }
.np-map--detail { display: block; height: 380px; }
.np-pin { background: #fff; color: var(--ink-950); font: 700 .78rem var(--f-body); padding: 4px 9px; border-radius: 999px; box-shadow: var(--sh-md); border: 1px solid var(--ink-200); white-space: nowrap; transform: translate(-50%, -50%); display: inline-block; }
.np-pin:hover, .np-pin.is-hot { background: var(--accent-600); color: #fff; border-color: var(--accent-600); }
.np-pin--solid { background: var(--accent-600); color: #fff; border-color: #fff; border-width: 2px; padding: 7px 12px; font-size: .85rem; }

.np-card .card-media img { width: 100%; height: 100%; object-fit: cover; }
.np-tag { display: inline-block; background: var(--ink-950); color: #fff; font-weight: 600; font-size: .78rem; padding: 6px 12px; border-radius: 999px; }
.np-card-title { font-size: 1.15rem; margin: 0 0 6px; }
.np-card-title a { color: inherit; }
.np-meta { display: flex; align-items: center; gap: 8px; margin: 4px 0; color: var(--ink-600); font-size: .92rem; }
.np-sep { border: none; border-top: 1px solid var(--ink-200); margin: 12px 0; }
.np-handover { margin: 0 0 12px; color: var(--ink-700); font-size: .92rem; }
.np-price-btn { font-weight: 700; }
.np-card:hover .np-price-btn { background: var(--accent-600); }
.np-pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 0 0 56px; color: var(--ink-600); font-size: .9rem; }

/* detail */
.np-head { padding-top: 28px; }
.np-head h1 { font-family: var(--f-display); font-weight: 800; letter-spacing: -.02em; margin: 0 0 4px; }
.np-sub { color: var(--ink-600); margin: 0 0 18px; }
.np-gallery { position: relative; display: grid; gap: 10px; border-radius: var(--r-xl); overflow: hidden; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; height: clamp(280px, 46vw, 520px); }
.np-gallery--1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.np-gallery--2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.np-gallery--3 { grid-template-columns: 2fr 1fr; }
.np-gallery--3 .np-g-item:first-child, .np-gallery--2 .np-g-item:first-child, .np-gallery--4 .np-g-item:first-child, .np-gallery--5 .np-g-item:first-child { grid-row: span 2; }
.np-gallery--1 .np-g-item:first-child, .np-gallery--2 .np-g-item:first-child { grid-row: auto; }
.np-g-item { border: 0; padding: 0; background: var(--ink-100); cursor: zoom-in; overflow: hidden; }
.np-g-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.np-g-item:hover img { transform: scale(1.03); }
.np-g-all { position: absolute; inset-inline-end: 14px; inset-block-end: 14px; background: #fff; border: 1px solid var(--ink-200); border-radius: var(--r); padding: 9px 14px; font-weight: 600; box-shadow: var(--sh-md); cursor: pointer; }
.np-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; padding-top: 32px; padding-bottom: 64px; }
.np-block { padding: 28px 0; border-bottom: 1px solid var(--ink-200); }
.np-block:first-child { padding-top: 0; }
.np-block h2 { font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -.01em; margin: 0 0 14px; }
.np-about { color: var(--ink-700); line-height: 1.7; max-width: 70ch; white-space: pre-line; }
.np-muted { color: var(--ink-500); font-size: .9rem; }
.np-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 18px; }
.np-facts span { display: block; color: var(--ink-500); font-size: .82rem; margin-bottom: 2px; }
.np-facts b { font-size: 1.02rem; font-weight: 600; }
.np-plan { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.np-plan-step { border: 1px solid var(--ink-200); border-radius: var(--r-lg); padding: 18px 20px; }
.np-plan-step b { display: block; font: 800 1.9rem var(--f-display); }
.np-plan-step span { color: var(--ink-600); }
.np-amen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 16px; }
.np-amen div { display: flex; align-items: center; gap: 10px; color: var(--ink-800); }
.np-amen i { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-100); color: var(--accent-600); display: grid; place-items: center; font-style: normal; font-size: .8rem; font-weight: 700; }
.np-table-wrap { overflow-x: auto; border: 1px solid var(--ink-200); border-radius: var(--r-lg); }
.np-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.np-table th { text-align: start; background: var(--ink-50); padding: 12px 16px; font-weight: 600; border-bottom: 1px solid var(--ink-200); }
.np-table td { padding: 12px 16px; border-bottom: 1px solid var(--ink-100); }
.np-table tr:last-child td { border-bottom: 0; }
.np-nowrap { white-space: nowrap; }
.np-acc { border: 1px solid var(--ink-200); border-radius: var(--r-lg); margin-top: 12px; overflow: hidden; }
.np-acc[open] { border-color: var(--ink-400); }
.np-acc > summary, .np-faq > summary { list-style: none; cursor: pointer; }
.np-acc > summary::-webkit-details-marker, .np-faq > summary::-webkit-details-marker { display: none; }
.np-acc > summary { display: grid; grid-template-columns: 1fr auto auto 24px; gap: 18px; align-items: center; padding: 16px 20px; background: var(--ink-50); }
.np-acc > summary::after, .np-faq > summary::after { content: '+'; font-size: 1.3rem; color: var(--ink-500); text-align: end; }
.np-acc[open] > summary::after, .np-faq[open] > summary::after { content: '–'; }
.np-acc-title { font-weight: 700; font-size: 1.05rem; }
.np-acc-size { color: var(--ink-700); }
.np-acc-n { color: var(--ink-500); font-size: .88rem; }
.np-acc .np-table-wrap { border: 0; border-top: 1px solid var(--ink-200); border-radius: 0; }
.np-faq { border-bottom: 1px solid var(--ink-200); }
.np-faq > summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 600; font-size: 1.02rem; }
.np-faq[open] > summary { color: var(--accent-600); }
.np-faq p { margin: 0 0 18px; color: var(--ink-700); max-width: 68ch; }
.np-dev { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--ink-200); border-radius: var(--r-lg); }
.np-dev-mark { width: 52px; height: 52px; border-radius: 50%; background: var(--ink-950); color: #fff; display: grid; place-items: center; font: 800 1.3rem var(--f-display); }
.np-dev-info { flex: 1; display: flex; flex-direction: column; }
.np-dev-info span { color: var(--ink-500); font-size: .88rem; }
.np-side { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 16px; }
.np-side-card { border: 1px solid var(--ink-200); background: var(--ink-50); border-radius: var(--r-xl); padding: 24px; display: grid; gap: 12px; }
.np-side-label { color: var(--ink-600); font-size: .92rem; }
.np-side-price { font: 800 2rem var(--f-display); letter-spacing: -.02em; }
.np-side-foot { margin: 4px 0 0; padding-top: 14px; border-top: 1px solid var(--ink-200); color: var(--ink-700); }
.np-side-foot:empty { display: none; }
.np-side-links { border: 1px solid var(--ink-200); border-radius: var(--r-xl); overflow: hidden; }
.np-side-links a { display: flex; flex-direction: column; padding: 16px 20px; color: inherit; border-bottom: 1px solid var(--ink-200); }
.np-side-links a:last-child { border-bottom: 0; }
.np-side-links a:hover { background: var(--ink-50); }
.np-side-links span { color: var(--ink-500); font-size: .86rem; }

/* modals */
.np-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(10, 17, 25, .62); display: flex; align-items: center; justify-content: center; padding: 16px; }
.np-modal[hidden] { display: none; }
.np-modal-box { position: relative; background: #fff; border-radius: var(--r-xl); width: 100%; max-width: 440px; max-height: 92vh; overflow: auto; padding: 26px; }
.np-modal-box--wide { max-width: 900px; padding: 16px; }
.np-modal-box h3 { margin: 0 0 6px; font-family: var(--f-display); }
.np-modal-box form { display: grid; gap: 10px; margin-top: 12px; }
.np-modal-box input, .np-modal-box select { height: 46px; border: 1px solid var(--ink-300); border-radius: var(--r); padding: 0 14px; font: inherit; width: 100%; }
.np-modal-x { position: absolute; inset-inline-end: 12px; inset-block-start: 12px; border: 0; background: var(--ink-100); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; z-index: 2; }
.np-form-msg { margin: 4px 0 0; color: var(--green-700); font-size: .9rem; }
.np-form-err { color: var(--red-700); }
.np-lot-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
#npLightbox { background: rgba(10, 17, 25, .92); }
#npLightbox img { max-width: min(1100px, 92vw); max-height: 86vh; border-radius: var(--r); object-fit: contain; }
.np-lb-x { background: #fff; }
.np-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; font-size: 1.6rem; cursor: pointer; }
.np-lb-prev { inset-inline-start: 16px; }
.np-lb-next { inset-inline-end: 16px; }
.np-lb-count { position: absolute; inset-block-end: 18px; color: #fff; font-size: .9rem; }

@media (max-width: 1024px) {
  .np-grid, .np-layout.map-on .np-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .np-layout.has-map.map-on { grid-template-columns: 1fr; }
  .np-layout.map-on .np-map { position: static; height: 360px; min-height: 0; order: -1; }
  .np-cols { grid-template-columns: 1fr; }
  .np-side { position: static; order: -1; }
}
@media (max-width: 640px) {
  .np-grid, .np-layout.map-on .np-grid { grid-template-columns: 1fr; }
  .np-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; height: 240px; }
  .np-gallery .np-g-item:nth-child(n+3) { display: none; }
  .np-gallery .np-g-item:first-child { grid-row: auto; }
  .np-facts, .np-amen { grid-template-columns: 1fr 1fr; }
  .np-acc > summary { grid-template-columns: 1fr auto 24px; }
  .np-acc-n { display: none; }
  .np-filters .btn, .np-switch { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .np-g-item img { transition: none; } }

.np-card.is-hot { box-shadow: var(--sh-lg); outline: 2px solid var(--accent-500); }

/* ---- new projects list: breadcrumb, pager, WhatsApp bubble, mobile sheet ---- */
.np-crumbs { display: flex; align-items: center; gap: 8px; color: var(--ink-500); font-size: .85rem; margin-bottom: 10px; }
.np-crumbs a { color: var(--ink-600); }
.np-pager { gap: 8px; }
.np-page { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border: 1px solid var(--ink-300); border-radius: 999px; color: var(--ink-800); font-weight: 600; background: #fff; }
a.np-page:hover { border-color: var(--ink-900); text-decoration: none; }
.np-page.is-current { background: var(--ink-950); border-color: var(--ink-950); color: #fff; }
.np-range { text-align: center; color: var(--ink-500); font-size: .9rem; margin: -36px 0 48px; }
.np-pager + .np-range { margin-top: -36px; }

.np-wa { position: fixed; inset-inline-end: 16px; inset-block-end: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 900; display: flex; align-items: center; gap: 10px; }
.np-wa-bubble { background: var(--ink-950); color: #fff; font-weight: 600; font-size: .92rem; padding: 12px 18px; border-radius: 999px; box-shadow: var(--sh-lg); white-space: nowrap; }
.np-wa-btn { width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: var(--sh-lg); }
.np-wa-cta { background: #25D366; color: #fff; border: 0; }
.np-wa-cta:hover { background: #1EA85C; color: #fff; }
.np-wa-btn:hover { background: #1EA85C; text-decoration: none; }

/* desktop: filter fields flow inline, mobile-only controls hidden */
.np-fbtns, .np-sheet-head, .np-sheet-bg, .np-reset { display: none; }
.np-fields { display: contents; }

@media (max-width: 720px) {
  .np-hero { padding: 22px 0 4px; }
  .np-hero h1 { font-size: 1.75rem; line-height: 1.15; }
  .np-hero .section-lede { font-size: .98rem; }
  .np-count { display: none; }

  .np-filters { display: block; position: sticky; top: var(--header-h); z-index: 30; background: #fff; margin: 14px -24px 0; padding: 10px 16px; border-bottom: 1px solid var(--ink-200); }
  .np-switch { display: none; }
  .np-fbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .np-fbtn { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: var(--r); border: 1px solid var(--ink-300); background: #fff; color: var(--ink-900); font: 600 .95rem var(--f-body); cursor: pointer; }
  .np-fbtn--dark { background: var(--ink-950); border-color: var(--ink-950); color: #fff; }
  .np-fbtn:disabled { opacity: .5; cursor: not-allowed; }
  .np-fbadge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--accent-600); color: #fff; font-size: .72rem; }

  .np-sheet-bg { display: block; position: fixed; inset: 0; background: rgba(10, 17, 25, .55); z-index: 1090; }
  .np-sheet-bg[hidden] { display: none; }
  .np-fields { display: grid; gap: 12px; position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 1100; max-height: 88vh; overflow: auto; background: #fff; border-radius: 22px 22px 0 0; padding: 18px 18px calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateY(105%); visibility: hidden; transition: transform .25s ease, visibility 0s .25s; box-shadow: 0 -12px 32px rgba(10, 17, 25, .2); }
  .np-fields.is-open { transform: none; visibility: visible; transition: transform .25s ease; }
  .np-sheet-head { display: flex; align-items: center; justify-content: space-between; font: 800 1.15rem var(--f-display); }
  .np-sheet-x { border: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--ink-100); cursor: pointer; }
  .np-filters .np-fields input[type=search], .np-filters .np-fields select { flex: none; width: 100%; height: 48px; }
  .np-apply { width: 100%; height: 50px; font-size: 1rem; }
  .np-reset { display: block; text-align: center; color: var(--ink-600); font-size: .92rem; padding: 4px 0; }

  .np-layout { margin-bottom: 28px; }
  .np-grid, .np-layout.map-on .np-grid { grid-template-columns: 1fr; gap: 22px; }
  .np-layout.map-on .np-grid { display: none; }
  .np-layout.map-on .np-map { position: static; display: block; height: calc(100vh - var(--header-h) - 140px); min-height: 360px; border-radius: var(--r-lg); margin-top: 14px; }
  .np-card .card-media { aspect-ratio: 4 / 3; }
  .np-card-title { font-size: 1.3rem; }
  .np-price-btn { height: 52px; font-size: 1.05rem; }
  .np-range { margin-top: -20px; }
  .np-wa-bubble { font-size: .85rem; padding: 10px 14px; }
}
@media (max-width: 380px) { .np-wa-bubble { display: none; } }
@media (prefers-reduced-motion: reduce) { .np-fields { transition: none; } }

/* ---- hero search: pill tabs, pill search, dropdown filter chips ---- */
.hero-inner--centered { z-index: 5; }
.hero-tabs { padding: 6px; gap: 0; box-shadow: 0 6px 24px rgba(16,24,40,.18); }
.hero-tab { padding: 13px 26px; font-weight: 600; font-size: 1rem; }
.hero-tab.is-active { background: var(--accent-100); color: var(--accent-700); font-weight: 700; }
.hero-search-card { border-radius: 28px; padding: 32px 32px 28px; gap: 22px; position: relative; overflow: visible; }
.hs-search { display: flex; align-items: center; gap: 10px; border: 1px solid var(--ink-200); border-radius: 999px; padding: 5px 6px 5px 20px; background: #fff; box-shadow: 0 1px 6px rgba(16,24,40,.08); }
.hs-search:focus-within { border-color: var(--ink-400); }
.hs-ico { color: var(--ink-500); flex: 0 0 auto; }
.hs-search input { flex: 1; min-width: 0; border: none; outline: none; box-shadow: none; background: none; font: inherit; font-size: 1.12rem; color: var(--ink-900); padding: 14px 0; }
.hs-search input::placeholder { color: var(--ink-500); }
.hs-submit { border: none; cursor: pointer; background: var(--accent-600); color: #fff; font: inherit; font-weight: 600; font-size: 1.02rem; padding: 14px 28px; border-radius: 999px; }
.hs-submit:hover { background: var(--accent-700); }
/* Wrap, never overflow-x:auto: that forces overflow-y to clip the dropdown panels. */
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-start; text-align: start; overflow: visible; padding-bottom: 2px; }
.hero-chips::-webkit-scrollbar { display: none; }
.hero-chips > * { flex: 0 0 auto; }
.hero-chips .hs-chip, .hero-chips .hs-chip--badge { white-space: nowrap; }
.hs-dd { position: relative; }
.hs-chip { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--ink-300); border-radius: 999px; padding: 13px 20px; font: inherit; font-size: 1.02rem; font-weight: 500; color: var(--ink-700); background: #fff; cursor: pointer; line-height: 1.2; }
.hs-chip:hover { background: var(--ink-50); }
.hs-chip[aria-expanded="true"] { background: var(--ink-100); }
.hs-chip.has-value { border-color: var(--accent-700); color: var(--accent-700); background: var(--accent-100); font-weight: 600; }
.hs-chip--badge { cursor: default; background: var(--accent-100); border-color: var(--accent-100); color: var(--accent-700); font-weight: 600; }
.hs-chip--badge:hover { background: var(--accent-100); }
.hs-chip--badge em { font-style: normal; font-weight: 500; }
.hs-chev { transition: transform .15s; flex: 0 0 auto; }
.hs-chip[aria-expanded="true"] .hs-chev { transform: rotate(180deg); }
.hs-panel { position: absolute; top: calc(100% + 8px); inset-inline-start: 0; z-index: 30; min-width: 300px; max-width: 460px; width: max-content; background: #fff; border-radius: 16px; padding: 20px; box-shadow: 0 16px 40px rgba(16,24,40,.22); text-align: start; }
.hs-panel[hidden] { display: none; }
.hs-panel h4 { margin: 0 0 14px; font-size: 1.25rem; font-weight: 700; color: var(--ink-900); }
.hs-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.hs-pill { border: 1px solid var(--ink-300); background: #fff; color: var(--ink-800); font: inherit; font-size: 1rem; padding: 10px 18px; border-radius: 999px; cursor: pointer; }
.hs-pill:hover { background: var(--ink-50); }
.hs-pill.is-on { background: var(--accent-100); border-color: var(--accent-700); color: var(--accent-700); font-weight: 600; }
.hs-panel--price { min-width: 460px; }
.hs-range { display: flex; align-items: center; gap: 12px; }
.hs-range input { flex: 1; min-width: 0; width: 100%; border: 1px solid var(--ink-300); border-radius: 10px; padding: 16px 14px; font: inherit; font-size: 1rem; color: var(--ink-900); }
.hs-range input:focus { outline: none; border-color: var(--ink-700); }
.hs-dash { width: 14px; height: 2px; background: var(--ink-800); flex: 0 0 auto; }
@media (max-width: 720px) {
  .hero-search-card { padding: 18px; border-radius: 20px; }
  .hero-tab { padding: 10px 14px; font-size: .92rem; }
  .hs-panel, .hs-panel--price { position: fixed; inset: auto 12px 12px 12px; min-width: 0; max-width: none; width: auto; }
}
.hs-dd[hidden]{display:none}

.hs-subtabs { display: flex; gap: 6px; border-bottom: 1px solid var(--ink-200); width: max-content; max-width: 100%; margin-top: -6px; }
.hs-subtabs[hidden] { display: none; }
.hs-subtab { background: none; border: none; border-bottom: 3px solid transparent; margin-bottom: -1px; padding: 12px 22px; font: inherit; font-size: 1.04rem; color: var(--ink-600); cursor: pointer; }
.hs-subtab:hover { color: var(--ink-900); }
.hs-subtab.is-on { color: var(--accent-700); border-bottom-color: var(--accent-600); font-weight: 700; }

/* ---- docked compact search bar (after scrolling past the hero) ---- */
.hs-dd--cat { display: none; }
.hero-search-card.is-stuck .hs-dd--cat { display: block; order: 2; }
.hs-chip--cat { border-color: var(--accent-700); color: var(--accent-700); background: #fff; font-weight: 500; }
.hero-search-card.is-stuck {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000; width: auto; max-width: none;
  border-radius: 0; box-shadow: 0 4px 14px rgba(16,24,40,.12); padding: 12px 24px;
  flex-direction: row; align-items: center; gap: 12px; flex-wrap: nowrap;
}
.hero-search-card.is-stuck .hs-subtabs, .hero-search-card.is-stuck .hs-chip--badge { display: none; }
.hero-search-card.is-stuck .hs-search { order: 1; flex: 0 0 360px; max-width: 40vw; }
.hero-search-card.is-stuck .hs-search input { font-size: 1rem; padding: 10px 0; }
.hero-search-card.is-stuck .hs-submit { padding: 10px 20px; font-size: .98rem; }
.hero-search-card.is-stuck .hero-chips { display: contents; }
.hero-search-card.is-stuck .hs-dd { order: 3; }
.hero-search-card.is-stuck .hs-chip { padding: 11px 18px; font-size: .98rem; }
.hero-search-card.is-stuck .hs-dd--cat { order: 2; }
@media (max-width: 900px) {
  .hero-search-card.is-stuck { flex-wrap: wrap; padding: 10px 14px; }
  .hero-search-card.is-stuck .hs-search { flex: 1 1 100%; max-width: none; }
}

/* ---- "Filtres" button + side drawer ---- */
.hs-chip--filters { gap: 8px; border-color: var(--ink-300); font-weight: 600; }
.hs-count { background: var(--accent-600); color: #fff; border-radius: 999px; font-size: .75rem; min-width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.hs-count[hidden] { display: none; }
.hs-overlay { position: fixed; inset: 0; background: rgba(16,24,40,.55); z-index: 2000; }
.hs-overlay[hidden], .hs-drawer[hidden] { display: none; }
.hs-drawer { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(480px, 100vw); background: #fff; z-index: 2001; display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(16,24,40,.25); text-align: start; }
.hs-drawer-head { display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-bottom: 1px solid var(--ink-200); font-size: 1.25rem; }
.hs-drawer-head .hs-x { margin-inline-start: auto; background: none; border: none; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--ink-700); }
.hs-drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px; background: var(--ink-50); display: flex; flex-direction: column; gap: 14px; }
.hs-card { background: #fff; border: 1px solid var(--ink-200); border-radius: 14px; padding: 16px 18px; }
.hs-card h5 { margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--ink-200); font-size: 1.05rem; font-weight: 700; color: var(--ink-900); }
.hs-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hs-opt { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; border: 1px solid var(--ink-300); border-radius: 10px; background: #fff; font: inherit; font-weight: 500; cursor: pointer; }
.hs-opt i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.hs-opt.is-on { background: var(--accent-100); border-color: var(--accent-700); color: var(--accent-700); }
.hs-drawer-foot { display: flex; gap: 12px; padding: 16px 22px; border-top: 1px solid var(--ink-200); background: #fff; }
.hs-btn-ghost, .hs-btn-main { flex: 1; padding: 15px; border-radius: 10px; font: inherit; font-weight: 700; font-size: 1.02rem; cursor: pointer; }
.hs-btn-ghost { background: #fff; border: 2px solid var(--accent-600); color: var(--accent-700); }
.hs-btn-main { background: var(--accent-600); border: 2px solid var(--accent-600); color: #fff; }
.hs-btn-main:hover { background: var(--accent-700); }
.hs-drawer .hs-range input { padding: 13px 12px; }
.hero-search-card.is-stuck .hs-dd--filters { order: 4; }

/* Logo sizing: wordmark ~22px tall on desktop, 20px on mobile (common header practice: 20-32px), never distorted. */
.logo img.mark--img { height: 22px; width: auto; max-width: 150px; max-height: 22px; border-radius: 0; object-fit: contain; }
@media (max-width: 720px) { .logo img.mark--img { height: 20px; max-height: 20px; max-width: 120px; } }

/* ---------------------------------------------- CRM Phase 2: bulk actions */
.bulk-bar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--white);
  border: 1px solid var(--ink-200); border-radius: var(--r-lg); padding: 10px 12px; margin-bottom: 14px;
}
.bulk-bar select, .bulk-bar input {
  border: 1px solid var(--ink-200); border-radius: var(--r); padding: 7px 10px;
  font-size: .86rem; color: var(--ink-800); background: var(--white); width: auto;
}
.bulk-count { font-size: .86rem; color: var(--ink-600); margin-inline-end: 4px; }
.bulk-count b { color: var(--accent-700); }
.k-check { display: inline-flex; align-items: center; cursor: pointer; width: fit-content; }
.k-check input { width: 15px; height: 15px; accent-color: var(--accent-600); cursor: pointer; }

/* ------------------------------------ CRM Phase 2: advanced filters + priorities */
.priority-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 14px; }
.prio {
  display: flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--ink-200);
  border-radius: var(--r-lg); padding: 12px 14px; font-size: .84rem; color: var(--ink-700); line-height: 1.35;
}
.prio:hover { text-decoration: none; border-color: var(--ink-300); }
.prio b { font-family: var(--f-display); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink-900); min-width: 2ch; }
.prio--hot { border-inline-start: 3px solid var(--red-700); }
.prio--hot b { color: var(--red-700); }
.prio--late { border-inline-start: 3px solid var(--amber-700); }
.prio--late b { color: var(--amber-700); }
.prio--new { border-inline-start: 3px solid var(--accent-600); }
.prio--new b { color: var(--accent-700); }

/* Home search: tabs and listings count on one row; filter chips aligned. */
.hs-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hs-top .hs-subtabs { margin-bottom: 0; }
.hs-top .hs-chip--badge { margin-inline-start: auto; }
@media (max-width: 760px) { .hero-chips { flex-wrap: wrap; overflow-x: visible; } }

/* ============================================================
   MOBILE ONLY (max-width: 760px). Desktop rules are not changed here.
   Follows common mobile guidance: 44px minimum touch targets,
   16px form text (stops iOS zoom), one-row scrolling tabs,
   and a balanced two-column grid for filters.
   ============================================================ */
@media (max-width: 760px) {
  /* Input text 16px or larger so iOS does not zoom in on focus */
  input, select, textarea, button { font-size: max(16px, 1em); }

  /* Mode tabs: one scrolling row instead of two uneven rows */
  .hero-tabs {
    display: flex; flex-wrap: nowrap; justify-content: flex-start;
    overflow-x: auto; scrollbar-width: none; gap: 4px; padding: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .hero-tabs::-webkit-scrollbar { display: none; }
  .hero-tab {
    flex: 0 0 auto; min-height: 44px; padding: 10px 14px;
    white-space: nowrap; font-size: .95rem;
  }

  /* Search card spacing */
  .hero-search-card { padding: 16px; border-radius: 22px; }
  .hs-top { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hs-top .hs-chip--badge { margin-inline-start: 0; }
  .hs-subtabs { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .hs-subtabs::-webkit-scrollbar { display: none; }
  .hs-subtab { min-height: 44px; white-space: nowrap; }

  /* Search field: taller touch target */
  .hs-search { min-height: 52px; }
  .hs-search input { min-height: 44px; }
  .hs-submit { min-height: 44px; }

  /* Filter chips: balanced two-column grid, category full width */
  .hero-chips {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px; overflow: visible; flex-wrap: nowrap;
  }
  .hero-chips > * { min-width: 0; }
  .hero-chips .hs-dd { width: 100%; }
  .hero-chips .hs-chip { width: 100%; min-height: 44px; justify-content: space-between; }
  .hero-chips .hs-dd--cat { grid-column: 1 / -1; }
  /* An odd last filter spans the full row so it is not left alone */
  .hero-chips > :last-child:nth-child(even) { grid-column: 1 / -1; }
}

/* ---- Mobile home: fäm-style structure, Foundry styling (mobile only) ---- */
.hs-mobile-toggle { display: none; }
@media (max-width: 760px) {
  /* Mode buttons: large rounded tiles, swipeable */
  .hero-tabs { background: transparent; border-radius: 0; padding: 0 0 4px; gap: 8px; }
  .hero-tab { background: #f2f4f7; border-radius: 16px; min-width: 112px; min-height: 52px; justify-content: center; font-weight: 600; }
  .hero-tab.is-active { background: var(--zellige-600); color: #fff; }

  /* Filters hidden until the Filtres button is tapped */
  .hs-mobile-toggle {
    display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 0;
    min-height: 48px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--ink-200);
    background: #fff; color: var(--ink-950); font-weight: 600; cursor: pointer; font-size: 16px;
  }
  .hero-chips:not(.is-open) { display: none; }
  .hero-chips.is-open { margin-top: 12px; }
  .hero-search-card .hs-search { border-radius: 16px; min-height: 60px; }

  /* Card rails: swipe sideways with snap points */
  .hm-rail {
    display: flex !important; grid-template-columns: none !important;
    overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px;
    margin: 0 -16px; padding: 4px 16px 12px; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .hm-rail::-webkit-scrollbar { display: none; }
  .hm-rail > * { flex: 0 0 80%; scroll-snap-align: start; min-width: 0; }
  .hm-rail-nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
  .hm-arrow {
    width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--ink-300);
    background: #fff; color: var(--ink-950); font-size: 1.6rem; line-height: 1; cursor: pointer;
  }
  .hm-arrow:hover { background: var(--ink-100); }
}

/* ---- Mobile fixes (max-width: 760px only) ---- */
@media (max-width: 760px) {
  /* Stop side-to-side spill (rails with negative margins) */
  html, body { max-width: 100%; overflow-x: hidden; overflow-x: clip; }
  .hm-rail, .hm-loop { max-width: 100%; }

  /* Burger menu: the JS opens #nav-panel, so show that panel and its links */
  .nav-panel { display: none; position: fixed; top: 72px; bottom: 0; inset-inline: 0; overflow-y: auto; z-index: 500; background: #fff; border-bottom: 1px solid var(--ink-200); box-shadow: var(--sh-lg); padding: 10px 16px 16px; }
  .nav-panel.is-open { display: block; }
  .nav-panel .nav { display: flex !important; position: static; box-shadow: none; border: 0; padding: 0; background: transparent; }
  .nav-panel .nav--right { display: flex !important; position: static; flex-direction: column; align-items: stretch; border-top: 1px solid var(--ink-200); margin-top: 8px; padding-top: 8px; gap: 2px; }
  .nav-panel .nav a { padding: 12px 4px; min-height: 44px; display: flex; align-items: center; }

  /* Endless loop carousel (price per m2) */
  .hm-loop {
    display: flex !important; grid-template-columns: none !important;
    overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px;
    padding: 4px 0 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .hm-loop::-webkit-scrollbar { display: none; }
  .hm-loop > * { flex: 0 0 72%; scroll-snap-align: start; min-width: 0; }
  .hm-loop + .hm-rail-nav { display: flex; }
}

/* Mobile hero: six mode buttons as a 3 x 2 grid of large tiles (fäm-style). */
@media (max-width: 760px) {
  .hero-tabs {
    display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px; overflow: visible; padding: 0; background: transparent; border-radius: 0;
  }
  .hero-tab {
    min-width: 0; min-height: 52px; padding: 10px 6px; font-size: .88rem;
    text-align: center; white-space: normal; line-height: 1.2;
    background: #f2f4f7; border-radius: 16px;
  }
  .hero-tab.is-active { background: var(--zellige-600); color: #fff; }
}

/* ==========================================================================
   MOBILE & TABLET HEADER (max-width: 999px only — desktop rules above are untouched)
   ========================================================================== */
@media (max-width: 999px) {
  body.nav-open { overflow: hidden; }

  /* Burger panel: full-height sheet under the header, scrollable */
  .nav-panel {
    display: none; position: fixed; top: var(--header-h); bottom: 0; inset-inline: 0;
    overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    z-index: 500; background: #fff; border-bottom: 1px solid var(--ink-200); box-shadow: var(--sh-lg);
    padding: 8px 16px calc(28px + env(safe-area-inset-bottom, 0px));
  }
  .nav-panel.is-open { display: block; }
  .nav-panel .nav {
    display: flex !important; flex-direction: column; align-items: stretch;
    position: static; box-shadow: none; border: 0; padding: 0; background: transparent; gap: 0;
  }
  .nav-panel .nav--right {
    display: flex !important; border-top: 1px solid var(--ink-200); margin-top: 10px; padding-top: 10px; gap: 0;
  }
  .nav-panel .nav a { padding: 12px 4px; min-height: 44px; display: flex; align-items: center; font-size: 1rem; }
  .nav-panel .nav--right a.btn { justify-content: center; margin: 6px 0; }

  /* Dropdown triggers become accordion rows */
  .nav-panel .nav-drop { position: static; border-bottom: 1px solid var(--ink-100, #f1f2f4); }
  .nav-panel .nav-drop-trigger { width: 100%; justify-content: space-between; }
  .nav-panel .nav-drop-trigger .chev { color: var(--ink-500); margin-inline-start: auto; }
  .nav-panel .nav-drop.is-open > .nav-drop-trigger .chev { transform: rotate(180deg); }
  .nav-panel .nav-drop.is-open > .nav-drop-trigger { color: var(--accent-700); }

  /* Hidden until its accordion row is open */
  .nav-panel .nav-mega,
  .nav-panel .nav-simple-panel {
    display: none; position: static; box-shadow: none; border: 0; border-radius: 0;
    background: transparent; min-width: 0; padding: 0 0 12px 10px;
  }
  .nav-panel .nav-drop.is-open > .nav-mega,
  .nav-panel .nav-drop.is-open > .nav-simple-panel { display: block; }

  .nav-panel .nav-mega-inner { display: block; padding: 0; }
  .nav-panel .nav-mega-rule { display: none; }
  .nav-panel .nav-mega-label { display: none; }
  .nav-panel .nav-mega-promo { display: none; }
  .nav-panel .nav-mega-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
  .nav-panel .nav-mega-links a { padding: 10px 4px; min-height: 44px; font-size: .95rem; }
  .nav-panel .nav-simple-panel a { padding: 10px 4px; min-height: 44px; font-size: .95rem; color: var(--ink-800); }
}

/* Phones: partner landing page spacing and grids */
@media (max-width: 760px) {
  .pp-page .section { padding: 40px 0; }
  .pp-page .pp-hero { padding-top: 28px !important; }
  .pp-page .pp-hero-media img { max-height: 240px !important; }
  .pp-page .pp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 24px 16px !important; }
  .pp-page .apply-form { padding: 22px 18px; }
  .pp-page .apply-side { padding: 26px 22px; }
  .pp-page .timeline-step { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
  .pp-page .timeline-dot { width: 36px; height: 36px; font-size: .9rem; }
  .pp-page .timeline-step:not(:last-child)::before { left: 17px; top: 36px; }
  .pp-page .timeline-card { padding: 14px 16px; }
  .pp-page .section-head { display: block; }
}
.srp-chips { display: contents; } /* desktop: children stay direct flex items, layout unchanged */

/* ==========================================================================
   SEARCH PAGE — MOBILE & TABLET (max-width: 999px only)
   ========================================================================== */
@media (max-width: 999px) {
  /* Filter bar: search on its own line, filter pills in one swipeable row */
  .srp-filters { padding: 10px 12px 8px; }
  .srp-filter-row { flex-wrap: wrap; gap: 8px; }
  .srp-search { flex: 1 1 100%; min-width: 0; }
  .srp-chips {
    display: flex; flex: 1 1 100%; flex-wrap: nowrap; gap: 8px; align-items: center;
    overflow-x: auto; overflow-y: visible; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding: 2px 2px 4px; margin: 0 -2px;
    overscroll-behavior-x: contain;
  }
  .srp-chips::-webkit-scrollbar { display: none; }
  .srp-chips > .fdrop { flex: 0 0 auto; }
  .srp-chips .fdrop-btn { min-height: 40px; }
  .srp-filter-row > .btn { flex: 1 1 100%; min-height: 44px; }

  /* Filter panels: a bottom sheet above the tab bar, never off-screen */
  .fdrop-panel,
  .fdrop-panel--wide,
  .fdrop-panel--right {
    position: fixed; top: auto;
    left: 12px; right: 12px; inset-inline-start: 12px; inset-inline-end: 12px;
    bottom: calc(62px + 10px + env(safe-area-inset-bottom, 0px));
    min-width: 0; max-width: none; width: auto;
    max-height: calc(100vh - var(--header-h) - 62px - 110px); max-height: calc(100dvh - var(--header-h) - 62px - 110px);
    overflow-y: auto; overscroll-behavior: contain;
    border-radius: 16px; padding: 18px 16px;
    box-shadow: 0 -8px 30px rgba(16,24,40,.22);
    z-index: 900;
  }
  .fdrop-foot { position: sticky; bottom: -18px; background: #fff; margin-bottom: -18px; padding-bottom: 14px; }
  .fdrop-foot .btn--primary { min-height: 44px; padding: 10px 22px; }
  .fdrop-panel .check-grid { grid-template-columns: 1fr 1fr !important; }
  .fdrop-range { flex-wrap: wrap; }
  .fdrop-range select, .fdrop-range input { min-width: 0; flex: 1 1 100px; }

  /* Map: keep overlays inside the visible area and clear of the switch button */
  .map-badge { top: 10px; font-size: .76rem; padding: 6px 11px; max-width: calc(100% - 24px); }
  .map-redo { top: 48px; font-size: .84rem; padding: 8px 14px; white-space: nowrap; }
  .srp-switch { bottom: calc(62px + 14px + env(safe-area-inset-bottom, 0px)); }
  .srp-map .leaflet-control-zoom { margin-bottom: 70px; }

  /* Results: comfortable single column with a bit more breathing room */
  .srp-results-head { padding: 14px 16px 10px; }
  .srp-results-head h1 { font-size: 1.22rem; }
  .srp-grid { grid-template-columns: 1fr; padding: 0 16px 90px; gap: 14px; }
}

/* ==========================================================================
   HOME HERO — PHONES (max-width: 760px). Desktop hero is untouched.
   Fixed hero height clipped the title at the top and squeezed the search.
   ========================================================================== */
@media (max-width: 760px) {
  .hero { height: auto; min-height: 0; overflow: visible; }
  .hero-media { position: absolute; }
  .hero-inner--centered {
    height: auto; justify-content: flex-start; align-items: stretch;
    padding: 30px 0 44px; gap: 18px; text-align: start;
  }
  .hero-head { padding-inline: 18px; }
  .hero-head h1 { font-size: clamp(1.85rem, 8vw, 2.4rem); line-height: 1.12; margin-bottom: 10px; }
  .hero-head .section-lede { font-size: 1rem; line-height: 1.5; margin: 0; max-width: none; }

  .hero-panel { gap: 12px; padding-inline: 14px; box-sizing: border-box; align-items: stretch; }
  .hero-search-card { padding: 16px; border-radius: 22px; gap: 14px; }

  /* Search: input on one line, the button full width under it */
  .hs-search {
    flex-wrap: wrap; row-gap: 8px; column-gap: 10px;
    border-radius: 18px; padding: 10px 10px 10px 14px;
  }
  .hs-search .hs-ico { flex: 0 0 auto; }
  .hs-search input { flex: 1 1 0; min-width: 0; font-size: 1rem; padding: 10px 0; }
  .hs-submit { flex: 1 1 100%; padding: 14px 20px; font-size: 1rem; border-radius: 14px; }

  .hs-top { gap: 10px; }
  .hs-subtabs { width: 100%; overflow-x: auto; }
  .hero-tab { min-height: 48px; }
}

/* ==========================================================================
   HOME FILTERS — phone bottom sheet (max-width: 760px).
   Tapping "Filtres" opens a sheet over the page instead of unfolding the
   list inline. Desktop never shows these pieces (hidden below).
   ========================================================================== */
.hs-sheet-head, .hs-sheet-foot, .hs-sheet-bg { display: none; }

@media (max-width: 760px) {
  body.filters-open { overflow: hidden; }
  body.filters-open .hs-sheet-bg {
    display: block; position: fixed; inset: 0; z-index: 999;
    background: rgba(10,17,25,.45);
  }
  .hero-chips.is-open {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto;
    display: flex !important; flex-direction: column; flex-wrap: nowrap; grid-template-columns: none;
    gap: 10px; margin: 0; padding: 0 16px calc(12px + env(safe-area-inset-bottom, 0px));
    max-height: 82vh; max-height: 82dvh; overflow-y: auto; overscroll-behavior: contain;
    background: #fff; border-radius: 22px 22px 0 0;
    box-shadow: 0 -12px 36px rgba(16,24,40,.25);
    z-index: 1000; animation: hsSheetUp .22s ease-out;
  }
  @keyframes hsSheetUp { from { transform: translateY(100%); } to { transform: none; } }
  .hero-chips.is-open > * { width: 100%; }

  .hero-chips.is-open .hs-sheet-head {
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 2; background: #fff;
    padding: 16px 0 12px; border-bottom: 1px solid var(--ink-100);
  }
  .hero-chips.is-open .hs-sheet-head h3 { margin: 0; font-size: 1.1rem; font-weight: 700; color: var(--ink-950); }
  .hero-chips.is-open .hs-sheet-close {
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ink-200);
    background: #fff; color: var(--ink-900); font-size: 1.4rem; line-height: 1; cursor: pointer;
  }

  .hero-chips.is-open .hs-sheet-foot {
    display: flex; gap: 10px; position: sticky; bottom: 0; z-index: 2; background: #fff;
    margin-top: auto; padding: 12px 0; border-top: 1px solid var(--ink-100);
  }
  .hero-chips.is-open .hs-sheet-foot button {
    flex: 1 1 0; min-height: 48px; border-radius: 14px; font: inherit; font-weight: 600; font-size: 1rem; cursor: pointer;
  }
  .hero-chips.is-open .hs-sheet-reset { background: #fff; color: var(--ink-900); border: 1px solid var(--ink-300); }
  .hero-chips.is-open .hs-sheet-apply { background: var(--accent-600); color: #fff; border: none; }

  /* A docked (stuck) search bar never shows the sheet pieces */
  .hero-search-card.is-stuck .hs-sheet-head,
  .hero-search-card.is-stuck .hs-sheet-foot,
  .hero-search-card.is-stuck .hs-sheet-bg { display: none !important; }
}

/* ---- Mobile full-screen hero (max-width: 760px only) ----
   Full-height photo with a dark gradient, left-aligned headline,
   mode tiles and the search card anchored to the bottom. */
@media (max-width: 760px) {
  .hero {
    height: auto; min-height: 100vh; min-height: 100svh;
    display: flex; flex-direction: column;
  }
  .hero-media::after {
    background: linear-gradient(180deg, rgba(10,17,25,.30) 0%, rgba(10,17,25,.55) 45%, rgba(10,17,25,.92) 100%) !important;
  }
  .hero-inner--centered {
    position: relative; z-index: 2; height: auto; min-height: 100vh; min-height: 100svh;
    justify-content: flex-end; align-items: stretch;
    padding: 110px 20px 24px;
  }
  .hero-head { text-align: left; padding: 0; margin: 0 0 22px; }
  .hero-head h1 {
    color: #fff; text-align: left; font-size: 2.35rem; line-height: 1.08;
    letter-spacing: -0.02em; margin: 0;
  }
  .hero-head .section-lede {
    color: rgba(255,255,255,.88); text-align: left; font-size: 1rem;
    line-height: 1.5; margin: 12px 0 0; max-width: 32ch;
  }
  .hero-panel { align-items: stretch; max-width: none; width: 100%; gap: 12px; }
  .hero-tabs { box-shadow: none; }
  .hero-search-card { background: rgba(255,255,255,.98); }
}

/* ---- Mobile search page (max-width: 760px only) ----
   The desktop layout is a fixed full-screen shell, so the filter bar
   stays on screen while the results scroll. On phones the whole page
   scrolls normally: the filters scroll away with the content. */
@media (max-width: 760px) {
  /* Same as the home page: the page scrolls normally and the header stays sticky. */
  body.is-srp { overflow-x: clip; overflow-y: visible; }
  .srp { position: relative; inset: auto; display: block; overflow: visible; min-height: 100vh; min-height: 100svh; }
  .srp-body { display: block; flex: none; min-height: 0; }
  .srp-map { height: 55vh; min-height: 300px; }
  .srp-results { overflow: visible; border-inline-start: 0; }
}

/* ---- Mobile card rails: span the full screen width (max-width: 760px only) ----
   Rails extend into the page margins so cards run to the screen edge
   instead of stopping short and leaving an empty strip. */
@media (max-width: 760px) {
  .hm-rail, .hm-loop {
    max-width: none; width: calc(100% + 48px); margin-inline: -24px;
    padding-inline: 24px; box-sizing: border-box;
  }
}

/* ---- Mobile hero colours (max-width: 760px only) ----
   Mode buttons: light silver tiles; the active one uses the brand orange.
   Filtres button: a solid brand-orange button, easy to spot. */
@media (max-width: 760px) {
  .hero-tab {
    background: linear-gradient(180deg, #ffffff 0%, #e4e8ee 100%);
    color: var(--ink-950); border: 1px solid var(--ink-200);
    box-shadow: 0 2px 6px rgba(16,24,40,.12);
  }
  .hero-tab.is-active {
    background: linear-gradient(180deg, var(--accent-500) 0%, var(--accent-700) 100%);
    color: #fff; border-color: transparent;
    box-shadow: 0 6px 16px rgba(184,56,11,.35);
  }
  .hs-mobile-toggle {
    width: 100%; justify-content: center; min-height: 52px; border-radius: 16px;
    background: linear-gradient(180deg, var(--accent-500) 0%, var(--accent-700) 100%);
    color: #fff; border: 0; font-weight: 700; font-size: 1rem;
    box-shadow: 0 6px 16px rgba(184,56,11,.30);
  }
  .hs-mobile-toggle:active { transform: translateY(1px); }
}

/* Mobile hero spacing: less empty space above the headline (max-width: 760px only). */
@media (max-width: 760px) {
  .hero-inner--centered { padding: 36px 20px 24px; min-height: 0; }
  .hero { min-height: 0; min-height: auto; }
}

/* ---- Mobile listing pages and cards (max-width: 760px only) ----
   Structure follows the resider.ca mobile layout: rounded cards with a
   full-width photo, a scrolling section tab row, a compact facts strip,
   a bottom action bar. Colours and type stay Foundry's. */
@media (max-width: 760px) {
  /* Section tabs: one scrolling row under the header */
  .listing-tabs { gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 0 4px; margin-inline: -16px; padding-inline: 16px; }
  .listing-tabs::-webkit-scrollbar { display: none; }
  .listing-tabs a { padding: 14px 12px; font-size: .95rem; white-space: nowrap; }

  /* Price and title */
  .zh-price-main { font-size: 2.1rem; }
  .zh-title { font-size: 1.22rem; }
  .zh-stats { gap: 18px; }
  .zh-stats b { font-size: 1.5rem; }

  /* Facts: compact three-column strip */
  .facts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .fact { padding: 12px 12px; }
  .fact dd { font-size: 1rem; }

  /* Cards: rounded, photo full-bleed, clear footer */
  .card, .result-card-m { border-radius: 20px; overflow: hidden; box-shadow: 0 1px 2px rgba(16,24,40,.06); }
  .card .card-body, .card > div:not(.card-media) { padding-inline: 16px; }

  /* Sticky bottom bar: taller, thumb-friendly */
  .np-sticky { padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); gap: 12px; }
  .np-sticky .btn { min-height: 50px; border-radius: 14px; font-weight: 700; padding-inline: 22px; }
  .np-sticky-price b { font-size: 1.2rem; }
}

/* ---- Mobile menu: full screen when opened (max-width: 999px) ----
   The menu covers the whole screen, even after scrolling, with its own
   top bar (logo and close button). The page behind does not scroll. */
@media (max-width: 999px) {
  .nav-panel {
    position: fixed; inset: 0; top: 0; bottom: 0; z-index: 900;
    background: #fff; overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: calc(env(safe-area-inset-top, 0px) + 0px) 20px calc(28px + env(safe-area-inset-bottom, 0px));
    border: 0; box-shadow: none;
  }
  .nav-panel.is-open { display: block; }
  .nav-sheet-top {
    display: flex; align-items: center; justify-content: space-between;
    height: var(--header-h); margin: 0 -20px 8px; padding: 0 20px;
    border-bottom: 1px solid var(--ink-200); position: sticky; top: 0; background: #fff; z-index: 2;
  }
  .nav-sheet-logo { font-family: var(--f-display); font-weight: 800; font-size: 1.25rem; color: var(--ink-950); text-decoration: none; letter-spacing: -0.02em; }
  .nav-close {
    width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 12px;
    border: 1px solid var(--ink-200); background: #fff; color: var(--ink-950); cursor: pointer;
  }
  .nav-panel .nav-sheet-top { display: flex !important; }
  body.nav-open { overflow: hidden; }
}

/* Menu logo: same look as the header logo, no tap target change. */
@media (max-width: 999px) {
  .nav-sheet-logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
  .nav-sheet-logo .mark { width: 28px; height: 28px; }
  .nav-sheet-logo .logo-text { font-size: 1.2rem; }
  .nav-sheet-top { justify-content: space-between; }
}

/* ---- Mobile listing card: resider layout, Foundry colours (max-width: 760px) ----
   Rounded card, inset photo with badges and heart on top, big price,
   specs line, accent location line, and a divider footer. */
@media (max-width: 760px) {
  .card {
    background: #fff; border: 1px solid var(--ink-200); border-radius: 22px;
    padding: 8px; overflow: hidden; box-shadow: none;
  }
  .card-media { border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; }
  .card-media img { border-radius: 16px; }
  .card-fav {
    top: 10px; right: 10px; width: 42px; height: 42px; border-radius: 12px;
    background: rgba(255,255,255,.92); color: var(--ink-950);
  }
  .card-count { right: 12px; bottom: 12px; }
  .card-body { padding: 16px 10px 8px; }
  .card-price { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink-950); }
  .card-specs { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 1rem; color: var(--ink-600); }
  .card-specs .sep { display: none; }
  .card-specs b { color: var(--ink-950); font-weight: 700; }
  .card-loc { display: block; margin-top: 6px; font-size: 1rem; font-weight: 500; color: var(--accent-600) !important; text-decoration: none; }
  .card-foot {
    margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--ink-200);
    font-size: .9rem; color: var(--ink-500); gap: 12px;
  }
}

/* ---- Mobile listing card: exact sizes and icons (max-width: 760px) ---- */
.card-meta, .ci, .lbl-m { display: none; }
@media (max-width: 760px) {
  .card { padding: 2px; border-radius: 20px; }
  .card-media { aspect-ratio: 3 / 2; border-radius: 18px 18px 0 0; }
  .card-media img { border-radius: 18px 18px 0 0; }
  .card-fav { top: 12px; right: 12px; width: 42px; height: 42px; border-radius: 12px; }
  .card-count { right: 12px; bottom: 12px; }
  .card-body { padding: 22px 24px 20px; }
  .card-meta {
    display: block; font-size: .8rem; font-weight: 600; letter-spacing: .14em;
    text-transform: uppercase; color: var(--accent-600);
  }
  .card-price { margin-top: 8px; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
  .card-specs { margin-top: 14px; gap: 6px 22px; font-size: 1.05rem; color: var(--ink-700); align-items: center; }
  .card-specs .cs { display: inline-flex; align-items: center; gap: 8px; }
  .card-specs .lbl-d { display: none; }
  .card-specs .lbl-m { display: inline; }
  .card-specs .sep { display: none; }
  .card-specs b { font-weight: 600; color: var(--ink-950); }
  .ci { display: inline-block; width: 20px; height: 20px; fill: none; stroke: var(--ink-700); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
  .card-loc { margin-top: 12px; font-size: 1rem; font-weight: 500; }
  .card-foot { margin-top: 16px; padding-top: 16px; font-size: .85rem; line-height: 1.5; }
}

/* ---- Mobile listing card: exact order (max-width: 760px) ----
   1. type and year   2. price   3. location (accent)
   4. divider, specs row with icons   5. divider, footer
   The plain type word in the specs row is hidden, since the type
   already appears in the first line. */
@media (max-width: 760px) {
  .card-body { display: flex; flex-direction: column; }
  .card-meta { order: 1; }
  .card-price { order: 2; margin-top: 6px; }
  .card-loc { order: 3; margin-top: 10px; }
  .card-specs { order: 4; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--ink-200); }
  .card-foot { order: 5; }
  .card-specs > span:not(.cs):not(.sep) { display: none; }
}

/* ---- Mobile listing card: fäm structure, Foundry colours (max-width: 760px) ----
   Order: photo with dots -> price + per-m2 pill -> specs icons (area, beds, baths)
   -> headline -> subtitle -> location -> "Publié le" pill -> agent bar with
   call, email, WhatsApp. Desktop keeps its own card (d-only / m-only split). */
.m-only { display: none !important; }
@media (max-width: 760px) {
  .d-only { display: none !important; }
  .card-meta { display: none; }
  .card { padding: 0; border-radius: 22px; }
  .card-media { aspect-ratio: 4 / 3; border-radius: 22px 22px 0 0; }
  .card-media img { border-radius: 22px 22px 0 0; }
  .card-dots.m-only { display: flex !important; position: absolute; left: 0; right: 0; bottom: 12px; justify-content: center; gap: 6px; z-index: 2; pointer-events: none; }
  .card-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.55); }
  .card-dots span.on { background: #fff; }
  .card-count { display: none; }
  .card-fav { top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--ink-950); }
  .card-tags { top: 14px; left: 14px; }

  .card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; }
  .card-body > * { order: 9; }

  .card-price { order: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 1.6rem; font-weight: 700; letter-spacing: -0.01em; color: var(--ink-950); line-height: 1.2; }
  .card-price small { font-size: .9rem; font-weight: 500; color: var(--ink-500); }
  .card-ppm.m-only { display: inline-block !important; font-size: .95rem; font-weight: 500; color: var(--ink-600); background: var(--ink-100); border-radius: 999px; padding: 7px 14px; letter-spacing: 0; }

  .card-specs-m.m-only { display: flex !important; order: 2; gap: 18px; align-items: center; margin-top: 14px; font-size: 1.05rem; color: var(--ink-700); }
  .card-specs-m span { display: inline-flex; align-items: center; gap: 8px; }
  .card-specs-m b { font-weight: 600; color: var(--ink-950); }
  .ci { display: inline-block; width: 20px; height: 20px; fill: none; stroke: var(--ink-700); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

  .card-headline.m-only { display: block !important; order: 3; margin-top: 16px; font-size: 1.05rem; font-weight: 600; color: var(--ink-950); line-height: 1.35; }
  .card-sub.m-only { display: block !important; order: 4; margin-top: 6px; font-size: .98rem; color: var(--ink-500); }
  .card-loc { order: 5; display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 1rem; color: var(--ink-700); text-decoration: none; }
  .card-loc .ci-pin { stroke: var(--ink-600); }
  .card-listed.m-only { display: inline-block !important; order: 6; margin-top: 12px; align-self: flex-start; font-size: .92rem; color: var(--ink-600); background: var(--ink-100); border-radius: 999px; padding: 8px 14px; }

  .card-agent-m.m-only { display: flex !important; order: 7; justify-content: space-between; align-items: center; gap: 12px; margin: 18px -20px -20px; padding: 14px 20px; border-top: 1px solid var(--ink-200); background: var(--ink-50, #f8f9fb); }
  .card-agent-who { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
  .card-agent-who .avatar { width: 44px; height: 44px; border-radius: 50%; font-size: .9rem; }
  .card-agent-txt { display: flex; flex-direction: column; min-width: 0; }
  .card-agent-txt b { font-weight: 600; color: var(--ink-950); font-size: 1rem; }
  .card-agent-txt small { color: var(--ink-500); font-size: .92rem; }
  .card-acts { display: inline-flex; gap: 8px; flex: 0 0 auto; }
  .card-act { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--ink-300); background: #fff; display: inline-grid; place-items: center; color: var(--ink-800); text-decoration: none; }
  .card-act svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .card-act--wa { border-color: #1fa855; color: #1fa855; }
}

/* ---- Mobile agent footer: exact match to the reference (max-width: 760px) ---- */
@media (max-width: 760px) {
  .card-agent-m.m-only {
    display: flex !important; align-items: center; justify-content: space-between; gap: 12px;
    margin: 20px -20px -20px; padding: 18px 20px 20px;
    background: #f5f6f8; border-top: 1px solid var(--ink-200);
  }
  .card-agent-who { display: inline-flex; align-items: center; gap: 14px; min-width: 0; }
  .card-agent-who .avatar {
    width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto;
    background: #e9ecf1; color: var(--ink-700); font-size: .9rem; font-weight: 600;
  }
  .card-agent-txt b { display: block; font-size: 1.05rem; font-weight: 600; color: var(--ink-950); }
  .card-agent-txt small { display: block; margin-top: 2px; font-size: .95rem; color: var(--ink-500); }
  .card-acts { display: inline-flex; gap: 8px; }
  .card-act {
    width: 46px; height: 40px; border-radius: 14px; border: 1px solid #d5d9e0;
    background: #fff; color: var(--ink-950); display: inline-grid; place-items: center;
  }
  .card-act svg { width: 18px; height: 18px; }
  .card-act--wa { border-color: #3fbf6b; color: #1fa855; }
}

/* ---- Home page, phones only (max-width: 760px) ----
   Sale and rental sections: arrows at the top right above the cards,
   the "Voir les biens" button centred under the cards. Card: price and
   per-m2 pill on one line, larger photo, fam-style spacing. */
@media (max-width: 760px) {
  .wrap:has(> .hm-rail) { display: flex; flex-direction: column; }
  .wrap:has(> .hm-rail) > .section-head { display: contents; }
  .wrap:has(> .hm-rail) > .section-head > *:not(.btn) { order: 1; }
  .wrap:has(> .hm-rail) > .hm-rail-nav { order: 2; align-self: flex-end; margin: 0 0 12px; }
  .wrap:has(> .hm-rail) > .hm-rail { order: 3; }
  .wrap:has(> .hm-rail) > .section-head > .btn { order: 4; align-self: center; margin: 16px 0 0; }

  .card-price { flex-wrap: nowrap; white-space: nowrap; }
  .card-ppm.m-only { font-size: .85rem; padding: 6px 12px; }
  .card-media { aspect-ratio: 16 / 10; }
  .card-body { padding: 20px 22px 22px; }
}

/* ---- Mobile cards: agent area spacing and card proportions (max-width: 760px) ----
   Name and agency stay on one line each with ellipsis, so the contact buttons never
   overlap the text. Cards are wider in the rail, as on the fäm listing page. */
@media (max-width: 760px) {
  .hm-rail > * { flex: 0 0 88%; }
  .card { border-radius: 22px; }
  .card-media { aspect-ratio: 16 / 10; }
  .card-body { padding: 20px 22px 0; }
  .card-agent-m.m-only { padding: 16px 18px; gap: 10px; margin: 20px -22px 0; }
  .card-agent-who { flex: 1 1 auto; min-width: 0; gap: 12px; }
  .card-agent-who .avatar { width: 42px; height: 42px; }
  .card-agent-txt { min-width: 0; flex: 1 1 auto; }
  .card-agent-txt b, .card-agent-txt small {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block;
  }
  .card-agent-txt b { font-size: 1rem; }
  .card-agent-txt small { font-size: .9rem; }
  .card-acts { flex: 0 0 auto; gap: 6px; }
  .card-act { width: 42px; height: 38px; border-radius: 12px; }
}

/* ---- Mobile agent footer and card spacing, fäm-style (max-width: 760px) ---- */
@media (max-width: 760px) {
  .card-listed.m-only { margin-bottom: 0; }
  .card-agent-m.m-only { margin-top: 16px; padding: 16px 18px 18px; }
  .card-agent-txt { gap: 2px; }
  .card-agent-txt b { font-size: 1.02rem; font-weight: 600; line-height: 1.25; }
  .card-agent-txt small { font-size: .92rem; line-height: 1.3; color: var(--ink-500); }
  .card-act { width: 44px; height: 40px; border-radius: 12px; border: 1.5px solid #d6dae1; background: #fff; }
  .card-act svg { width: 20px; height: 20px; stroke-width: 1.7; }
  .card-act--wa { border-color: #39b86a; color: #1fa855; }
  .card-act--wa svg { stroke-width: 1.6; }
}

/* ---- Mobile agent footer: full name and agency visible (max-width: 760px) ----
   Cards are a little wider in the rail; avatar and buttons are a little
   smaller, so the name and agency have room to show in full. */
@media (max-width: 760px) {
  .hm-rail > * { flex: 0 0 92%; }
  .card-body { padding-inline: 20px; }
  .card-agent-m.m-only { margin-inline: -20px; padding: 14px 16px 16px; gap: 8px; }
  .card-agent-who { gap: 10px; }
  .card-agent-who .avatar { width: 38px; height: 38px; font-size: .8rem; }
  .card-agent-txt b { font-size: 1rem; white-space: nowrap; overflow: visible; text-overflow: clip; }
  .card-agent-txt small { white-space: nowrap; overflow: visible; text-overflow: clip; font-size: .88rem; }
  .card-acts { gap: 6px; }
  .card-act { width: 40px; height: 38px; border-radius: 11px; }
}

/* ==========================================================================
   MOBILE LISTING CARD: one definitive version, measured from the fäm card
   (IMG_0978). Phones only (max-width: 760px). Desktop is not affected.
   Card ~91% of screen width, 16:9 photo, 20px text padding, 17px body text,
   grey footer band with 42x36 outlined buttons, WhatsApp in green.
   ========================================================================== */
@media (max-width: 760px) {
  .hm-rail > * { flex: 0 0 91%; }

  .card { border-radius: 14px; border: 1px solid #e3e6eb; background: #fff; overflow: hidden; padding: 0; }
  .card-media { aspect-ratio: 16 / 9; border-radius: 0; }
  .card-media img { border-radius: 0; }
  .card-fav { top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; }

  .card-body { padding: 20px 20px 0; }

  .card-price { font-size: 1.5rem; font-weight: 700; line-height: 1.2; flex-wrap: nowrap; white-space: nowrap; }
  .card-ppm.m-only { font-size: .92rem; font-weight: 500; padding: 8px 14px; border-radius: 999px; background: #f3f4f6; color: var(--ink-600); }

  .card-specs-m.m-only { margin-top: 14px; gap: 16px; font-size: 1.05rem; color: #3b4250; }
  .card-specs-m b { font-weight: 600; color: var(--ink-950); }
  .ci { width: 18px !important; height: 18px !important; }

  .card-headline.m-only { margin-top: 14px; font-size: 1.05rem; font-weight: 600; line-height: 1.35; color: var(--ink-950); }
  .card-sub.m-only { display: none !important; }
  .card-loc { margin-top: 12px; font-size: 1.05rem; color: #2f3644; gap: 10px; }
  .card-loc .ci-pin { width: 20px !important; height: 20px !important; }

  .card-listed.m-only { margin-top: 14px; margin-bottom: 0; padding: 9px 16px; font-size: .95rem; background: #f3f4f6; color: #3b4250; border-radius: 999px; }

  .card-agent-m.m-only {
    margin: 22px 0 0; padding: 16px 20px 18px; gap: 10px;
    background: #f5f5f6; border-top: 1px solid #e3e6eb;
  }
  .card-agent-who { gap: 14px; }
  .card-agent-who .avatar { width: 40px; height: 40px; font-size: .85rem; }
  .card-agent-txt b { font-size: 1.05rem; font-weight: 600; color: var(--ink-950); }
  .card-agent-txt small { font-size: .95rem; color: var(--ink-500); }
  .card-acts { gap: 8px; }
  .card-act { width: 42px; height: 36px; border-radius: 10px; border: 1.5px solid #d6dae1; background: #fff; }
  .card-act svg { width: 18px !important; height: 18px !important; }
  .card-act--wa { border-color: #5fcf7f; color: #1fa855; }
}

/* ---- Mobile agent footer: text and buttons side by side, never overlapping
   (max-width: 760px). Name and agency sit in their own column with ellipsis;
   the three buttons keep a fixed width on the right. The band spans the card. */
@media (max-width: 760px) {
  .hm-rail > * { flex: 0 0 92%; }
  .card-agent-m.m-only {
    display: flex !important; align-items: center; justify-content: space-between; gap: 10px;
    margin: 22px -20px 0; padding: 16px 20px 18px; width: auto;
    background: #f5f5f6; border-top: 1px solid #e3e6eb;
  }
  .card-agent-who { display: flex; align-items: center; gap: 10px; flex: 1 1 0; min-width: 0; }
  .card-agent-who .avatar { width: 38px; height: 38px; flex: 0 0 38px; font-size: .8rem; }
  .card-agent-txt { display: flex; flex-direction: column; min-width: 0; flex: 1 1 0; }
  .card-agent-txt b, .card-agent-txt small {
    display: block; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .card-agent-txt b { font-size: 1rem; font-weight: 600; color: var(--ink-950); }
  .card-agent-txt small { font-size: .9rem; color: var(--ink-500); }
  .card-acts { display: flex; gap: 6px; flex: 0 0 auto; }
  .card-act { flex: 0 0 auto; width: 38px; height: 36px; border-radius: 10px; border: 1.5px solid #d6dae1; background: #fff; }
  .card-act svg { width: 17px !important; height: 17px !important; }
  .card-act--wa { border-color: #5fcf7f; color: #1fa855; }
}

/* ---- Mobile agent footer: exact fäm measurements (max-width: 760px) ----
   Measured from the fäm footer (IMG_1023): 22px side padding, 44px avatar,
   17px bold name, 15px grey agency, 42x36 outlined buttons with 8px gaps,
   WhatsApp outlined in green. */
@media (max-width: 760px) {
  .card-agent-m.m-only { padding: 18px 22px 20px; gap: 10px; }
  .card-agent-who { gap: 14px; }
  .card-agent-who .avatar { width: 44px; height: 44px; flex: 0 0 44px; font-size: .9rem; }
  .card-agent-txt b { font-size: 1.06rem; font-weight: 600; }
  .card-agent-txt small { font-size: .94rem; margin-top: 2px; }
  .card-acts { gap: 8px; }
  .card-act { width: 42px; height: 36px; border-radius: 12px; border: 1.5px solid #d4d9e0; }
  .card-act svg { width: 18px !important; height: 18px !important; }
  .card-act--wa { border-color: #5fcf7f; color: #1fa855; }
}

/* ---- Mobile agent buttons: icon colours (max-width: 760px) ----
   Call and email icons are dark; the WhatsApp icon and border are green. */
@media (max-width: 760px) {
  .card-act svg { stroke: #1a1f2b !important; fill: none !important; }
  .card-act--wa { border-color: #25d366 !important; }
  .card-act--wa svg { stroke: #1fa855 !important; }
}

/* ---- Blog ---- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.blog-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--ink-200); border-radius: var(--r-lg); background: #fff; color: var(--ink-950); text-decoration: none; }
.blog-card:hover { box-shadow: 0 8px 24px rgba(10,17,25,.08); text-decoration: none; }
.blog-card h2 { font-size: 1.15rem; line-height: 1.3; margin: 0; }
.blog-card p { color: var(--ink-600); margin: 0; font-size: .98rem; }
.blog-cat { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-600); }
.blog-date { font-size: .88rem; color: var(--ink-500); }
.blog-article { max-width: 70ch; }
.blog-article h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); line-height: 1.15; margin: 8px 0; }
.blog-article p { font-size: 1.05rem; line-height: 1.7; color: var(--ink-800); margin: 0 0 16px; }

/* ---- Home sale and rental rows, desktop: carousel with arrows on the edges ----
   Shown only above 760px. The phone layout above is unchanged. */
@media (min-width: 761px) {
  .hm-rail-wrap { position: relative; }
  .hm-rail-wrap > .hm-rail {
    display: flex !important; grid-template-columns: none !important;
    overflow-x: auto; scroll-snap-type: none; gap: 20px;
    padding: 4px 2px 12px; scrollbar-width: none;
  }
  .hm-rail-wrap > .hm-rail::-webkit-scrollbar { display: none; }
  .hm-rail-wrap > .hm-rail > *,
  .hm-rail-wrap > .hm-loop > * { flex: 0 0 calc((100% - 60px) / 4); min-width: 0; scroll-snap-align: start; }
  .hm-rail-wrap > .hm-loop {
    display: flex !important; grid-template-columns: none !important;
    overflow-x: auto; scroll-snap-type: none; gap: 20px;
    padding: 4px 2px 12px; scrollbar-width: none;
  }
  .hm-rail-wrap > .hm-loop::-webkit-scrollbar { display: none; }
  .hm-rail-wrap > .hm-rail-nav { display: block; position: absolute; left: -26px; right: -26px; top: 0; height: 0; pointer-events: none; z-index: 5; }
  .hm-rail-wrap .hm-arrow {
    position: absolute; top: 118px; width: 52px; height: 52px; border-radius: 50%;
    background: #fff; border: 1px solid var(--ink-200); color: var(--ink-950);
    box-shadow: 0 6px 18px rgba(10,17,25,.14); font-size: 1.6rem; line-height: 1;
    display: grid; place-items: center; cursor: pointer; pointer-events: auto;
  }
  .hm-rail-wrap .hm-arrow[data-dir="-1"] { left: 0; }
  .hm-rail-wrap .hm-arrow[data-dir="1"] { right: 0; }
  .hm-rail-wrap .hm-arrow:hover { background: var(--ink-100); }
  /* Price row: arrows centred on the cards, not at the rental-card height. */
  .hm-rail-wrap:has(> .hm-loop) > .hm-rail-nav { top: 4px; height: calc(100% - 16px); }
  .hm-rail-wrap:has(> .hm-loop) .hm-arrow { top: 50%; transform: translateY(-50%); }
}

/* Desktop sale/rental arrows: hidden until the pointer is over the row (exprealty style). */
@media (min-width: 761px) {
  .hm-rail-wrap .hm-arrow { opacity: 0; pointer-events: none; transition: opacity .2s ease, background .2s ease; }
  .hm-rail-wrap:hover .hm-arrow,
  .hm-rail-wrap .hm-arrow:focus-visible { opacity: 1; pointer-events: auto; }
}

/* ==========================================================================
   PROJETS NEUFS PAGE, PHONES ONLY (max-width: 760px)
   One column of projects, the map stacked above the list, filters as a
   full-width button, and touch-friendly sizes. Desktop is not affected.
   ========================================================================== */
@media (max-width: 760px) {
  .np-hero { padding: 24px 0 4px; }
  .np-hero h1 { font-size: 1.85rem; line-height: 1.15; margin: 8px 0 8px; }
  .np-crumbs { font-size: .85rem; flex-wrap: wrap; }

  .np-filters { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 12px 0 4px; }
  .np-fbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .np-fbtn { min-height: 48px; border-radius: 12px; font-size: 1rem; justify-content: center; width: 100%; }
  .np-switch { width: 100%; justify-content: center; min-height: 48px; }
  .np-count { margin: 10px 0 12px; font-size: .92rem; }

  .np-layout .np-grid,
  .np-layout.map-on .np-grid { grid-template-columns: 1fr !important; gap: 16px; }
  .np-layout.has-map.map-on { display: block !important; }
  .np-layout.map-on .np-map {
    position: static !important; height: 56vh; min-height: 300px; margin-bottom: 18px;
  }
  .np-map--detail { height: 280px; }

  .np-pager { flex-wrap: wrap; gap: 10px; margin: 8px 0 32px; }
  .np-page { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .np-range { font-size: .9rem; text-align: center; }
}

/* ==========================================================================
   PROJETS NEUFS, PHONES: filters and map (max-width: 760px)
   Filters open as a full-screen panel with a top bar, like the burger menu,
   sliding up smoothly. The map sits right under the buttons, at a fixed height,
   and stops above the footer.
   ========================================================================== */
@media (max-width: 760px) {
  /* Filter panel: full screen, same pattern as the burger menu */
  .np-sheet-bg { display: none !important; }
  .np-fields {
    display: flex !important; flex-direction: column; gap: 12px;
    position: fixed !important; top: 0 !important; bottom: 0 !important; left: 0 !important; right: 0 !important;
    height: 100vh; height: 100dvh; max-height: none !important; border-radius: 0 !important;
    padding: calc(env(safe-area-inset-top, 0px) + 0px) 20px calc(24px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto; background: #fff; z-index: 1100;
    transform: translateY(100%); visibility: hidden;
    transition: transform .3s ease, visibility .3s ease;
  }
  .np-fields.is-open { transform: none; visibility: visible; }
  .np-sheet-head {
    position: sticky; top: 0; z-index: 2; display: flex !important; align-items: center; justify-content: space-between;
    height: var(--header-h); margin: 0 -20px 8px; padding: 0 20px; background: #fff; border-bottom: 1px solid var(--ink-200);
  }
  .np-sheet-x { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--ink-200); background: #fff; font-size: 1rem; }

  /* No extra space around the layout; map directly under the buttons */
  .np-count { display: none; }
  .np-layout { margin: 0 !important; padding: 0 !important; overflow: hidden; }
  .np-layout.map-on .np-map {
    position: relative !important; top: auto !important; display: block !important;
    height: 56vh !important; min-height: 320px !important; max-height: 460px;
    margin: 12px 0 28px !important; border-radius: var(--r-lg);
  }
  .np-filters { margin-bottom: 0; }
}

/* ==========================================================================
   PROJETS NEUFS, PHONES: fit the screen (max-width: 760px)
   No negative margins, nothing wider than the screen, buttons in one row
   inside the page, map full width, tighter spacing. Desktop is not affected.
   ========================================================================== */
@media (max-width: 760px) {
  #main { overflow-x: clip; }
  .np-hero { padding-bottom: 0; }
  .np-hero .section-lede { margin-bottom: 14px; }

  .np-filters {
    margin: 12px 0 0 !important; padding: 10px 0 8px !important; width: 100%; box-sizing: border-box;
    max-width: 100%; border-bottom: 1px solid var(--ink-200);
  }
  .np-fbtns { width: 100%; grid-template-columns: 1fr 1fr; gap: 10px; }
  .np-fbtn { min-width: 0; width: 100%; box-sizing: border-box; }

  .np-layout { margin-top: 12px !important; max-width: 100%; }
  .np-grid { gap: 16px !important; max-width: 100%; }
  .np-card, .np-card .card-media { max-width: 100%; }

  .np-layout.map-on .np-map {
    width: 100% !important; max-width: 100% !important;
    height: 50vh !important; min-height: 300px !important; max-height: 420px;
    margin: 8px 0 24px !important;
  }
  .np-pager { margin: 4px 0 24px; }
  .np-range { margin-top: 0; }
}

/* ---- Visit request sheet (property page) ---- */
.vs[hidden] { display: none !important; }
.vs { position: fixed; inset: 0; z-index: 1200; background: rgba(10,17,25,.5); display: flex; align-items: flex-end; justify-content: center; }
.vs-card { width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto; background: #fff; border-radius: 22px 22px 0 0; padding: 18px 20px calc(22px + env(safe-area-inset-bottom, 0px)); }
.vs-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.vs-head h2 { font-family: var(--f-display); font-size: 1.3rem; margin: 0; }
.vs-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ink-100); font-size: 1.4rem; cursor: pointer; }
.vs-addr { color: var(--ink-500); font-size: .95rem; margin: 0 0 16px; }
.vs-h { font-size: 1.05rem; margin: 0 0 12px; }
.vs-dates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.vs-date { min-height: 52px; border: 1.5px solid var(--ink-300); border-radius: 14px; background: #fff; font-weight: 600; cursor: pointer; text-transform: capitalize; }
.vs-date:hover { border-color: var(--accent-600); }
.vs-slot { display: grid; grid-template-columns: minmax(0, 1fr) 110px 36px; gap: 8px; align-items: center; margin-bottom: 8px; }
.vs-slot input[type=date] { min-height: 44px; border-radius: 12px; border: 1.5px solid var(--ink-300); padding: 0 10px; font-size: 16px; background: #fff; }
.vs-slot-d { font-size: .92rem; color: var(--ink-700); text-transform: capitalize; }
.vs-slot select { min-height: 44px; border-radius: 12px; border: 1.5px solid var(--ink-300); padding: 0 10px; font-size: 16px; }
.vs-rm { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--ink-100); cursor: pointer; }
.vs-add { background: none; border: 0; color: var(--accent-600); font-weight: 700; padding: 8px 0 16px; cursor: pointer; font-size: 1rem; }
.vs-next { min-height: 50px; border-radius: 14px; margin-top: 4px; }
.vs-next:disabled { opacity: .5; }
.vs-sum { font-size: .95rem; color: var(--ink-700); background: var(--ink-100); border-radius: 12px; padding: 10px 12px; margin-bottom: 14px; }
.vs-f { display: grid; gap: 6px; font-size: .95rem; font-weight: 600; margin-bottom: 12px; color: var(--ink-800); }
.vs-f input { min-height: 46px; border-radius: 12px; border: 1.5px solid var(--ink-300); padding: 0 12px; font-size: 16px; font-weight: 400; }
.vs-back { display: block; margin: 12px auto 0; background: none; border: 0; color: var(--ink-600); cursor: pointer; font-weight: 600; }
@media (min-width: 761px) { .vs { align-items: center; } .vs-card { border-radius: 22px; } }

/* Live temperature block on the listing page (replaces the title-status callout). */
.weather-main { display: flex; align-items: center; gap: 14px; }
.weather-temp { font-family: var(--f-display); font-size: 2.4rem; line-height: 1; color: var(--ink-950); letter-spacing: -0.02em; }
.weather-main strong { display: block; color: var(--ink-950); }
.weather-label { display: block; font-size: .92rem; color: var(--ink-600); margin-top: 2px; }

/* Per-listing highlights on cards: the first few features, so cards in the same category differ. */
.card-feats { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 12px; }
.card-feats span { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--ink-600); background: var(--ink-100); border-radius: 999px; padding: 3px 9px; }
.card-feats .cf-ico { width: 14px; height: 14px; flex: 0 0 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ==========================================================================
   Agent profile (/agents/:slug) — Zillow-style layout
   ========================================================================== */
.ap { padding-top: 28px; padding-bottom: 48px; }
.ap .flash { margin-bottom: 16px; }
.ap-hero { display: grid; grid-template-columns: 180px minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; background: #fff; border: 1px solid var(--ink-200); border-radius: var(--r-lg); padding: 28px; }
.ap-photo { position: relative; justify-self: center; }
.ap-photo .avatar--xl { width: 168px; height: 168px; font-size: 3rem; }
.ap-top { position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%); background: #fff; border: 1px solid var(--ink-200); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: .85rem; white-space: nowrap; box-shadow: var(--sh-sm); }
.ap-top small { display: block; font-weight: 400; color: var(--ink-500); font-size: .72rem; }
.ap-tier { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-700); margin-bottom: 6px; }
.ap-id h1 { font-family: var(--f-display); font-size: 2rem; margin: 0 0 6px; color: var(--ink-950); }
.ap-agency { margin: 0; font-size: 1.05rem; color: var(--ink-800); font-weight: 600; }
.ap-role { margin: 4px 0 10px; color: var(--ink-500); font-size: .92rem; }
.ap-rating { margin: 0; color: var(--ink-800); }
.ap-rating a { color: var(--zellige-700); font-weight: 600; }
.ap-star { color: #E0A21A; }
.ap-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin: 0; }
.ap-stats dt { font-size: .85rem; color: var(--ink-500); }
.ap-stats dd { margin: 2px 0 0; font-family: var(--f-display); font-size: 1.4rem; font-weight: 600; color: var(--ink-950); }
.ap-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; margin-top: 28px; align-items: start; }
.ap-main { display: grid; gap: 22px; min-width: 0; }
.ap-card { background: #fff; border: 1px solid var(--ink-200); border-radius: var(--r-lg); padding: 24px; }
.ap-row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ap-row-head h2 { font-family: var(--f-display); font-size: 1.4rem; margin: 0; color: var(--ink-950); }
.ap-count { color: var(--ink-500); font-size: .92rem; }
.ap-sub { font-size: 1rem; margin: 18px 0 10px; color: var(--ink-800); }
.ap-bio { color: var(--ink-700); line-height: 1.6; margin: 0 0 14px; }
.ap-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ap-checks li { display: flex; gap: 10px; color: var(--ink-800); }
.ap-checks li span { color: var(--zellige-600); font-weight: 700; }
.ap-empty { color: var(--ink-500); margin: 0; }
.ap-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 280px); gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 8px; }
.ap-slide { scroll-snap-align: start; min-width: 0; }
.ap-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.ap-member { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--ink-200); border-radius: var(--r-md); color: inherit; text-decoration: none; }
.ap-member:hover { border-color: var(--ink-300); text-decoration: none; }
.ap-member strong { display: block; color: var(--ink-950); }
.ap-member small { color: var(--ink-500); }
.ap-areas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 20px; color: var(--ink-800); }
.ap-side { position: sticky; top: calc(var(--header-h) + 20px); }
.ap-contact { background: #fff; border: 1px solid var(--ink-200); border-radius: var(--r-lg); padding: 24px; }
.ap-contact h2 { font-family: var(--f-display); font-size: 1.35rem; margin: 0 0 14px; color: var(--ink-950); }
.ap-opt { font-weight: 400; color: var(--ink-400); }
.ap-links { display: grid; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--ink-200); font-size: .95rem; }
.ap-links a { color: var(--zellige-700); }
@media (max-width: 1024px) {
  .ap-hero { grid-template-columns: 1fr; text-align: start; }
  .ap-photo { justify-self: start; }
  .ap-layout { grid-template-columns: 1fr; }
  .ap-side { position: static; }
}
@media (max-width: 640px) {
  .ap-stats { grid-template-columns: 1fr 1fr; }
  .ap-photo .avatar--xl { width: 120px; height: 120px; font-size: 2.2rem; }
  .ap-id h1 { font-size: 1.6rem; }
}

/* Agent profile: reviews and review form */
.ap-row-head .btn { white-space: nowrap; }
.ap-reviews { display: grid; gap: 12px; margin-bottom: 18px; }
.ap-review { border: 1px solid var(--ink-200); border-radius: var(--r-md); padding: 14px 16px; }
.ap-review-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; color: var(--ink-950); }
.ap-review-stars { color: #E0A21A; letter-spacing: 1px; }
.ap-off { color: var(--ink-200); }
.ap-review p { margin: 0; color: var(--ink-700); line-height: 1.55; }
.ap-review-form { border-top: 1px solid var(--ink-200); padding-top: 18px; display: grid; gap: 4px; max-width: 560px; }
.ap-review-form h3 { font-family: var(--f-display); margin: 0 0 8px; font-size: 1.15rem; }
.ap-review-form select { min-height: 46px; border-radius: 12px; border: 1.5px solid var(--ink-300); padding: 0 12px; font-size: 16px; background: #fff; width: 100%; }

/* Agent profile: full-width listings row, same 3-column grid as the home page */
.ap-wide { display: grid; gap: 22px; margin-top: 22px; }
/* Keep the profile's card rows inside the page width. Without this, the grid column
   grows to the width of all the cards in a row and the rail is thousands of pixels wide. */
.ap-wide { grid-template-columns: minmax(0, 1fr); }
.ap-wide > *, .ap-wide .ap-block, .ap-wide .hm-rail-wrap { min-width: 0; width: 100%; max-width: 100%; }
.ap-wide .ap-card { min-width: 0; }
.ap-wide .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1024px) { .ap-wide .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ap-wide .grid--3 { grid-template-columns: 1fr; } }

/* Agent profile: sections that hold home-page cards have no extra border or padding,
   so the cards look exactly like the home page. */
.ap-block { padding: 0; margin: 0; }
.ap-block .ap-row-head { margin-bottom: 16px; }
.ap-wide .ap-block + .ap-block, .ap-wide .ap-card { margin-top: 0; }

/* Agent profile: map, filter tabs, team prices, footer */
.ap-explore { display: grid; gap: 14px; }
.ap-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.ap-tab { border: 1px solid var(--ink-300); background: #fff; border-radius: 999px; padding: 9px 16px; font: inherit; font-weight: 600; color: var(--ink-700); cursor: pointer; }
.ap-tab:hover { background: var(--ink-50); }
.ap-tab.is-on { background: var(--ink-950); color: #fff; border-color: var(--ink-950); }
.ap-legend { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: .9rem; color: var(--ink-600); }
/* Agent profile: filter and listings sit in the left column under "Aperçu",
   filling the space beside the contact box. Cards show two per row. */
.ap-main .ap-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ap-filter { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 18px; padding: 14px 18px; border: 1px solid var(--ink-200); border-radius: var(--r-lg); background: #fff; }
.ap-filter .ap-tabs { gap: 8px; }
.ap-filter .ap-legend { font-size: .85rem; }
@media (max-width: 640px) { .ap-main .ap-list { grid-template-columns: 1fr; } }

.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-inline-end: 4px; }
.dot--sold { background: #E0A21A; }
.dot--sale { background: #1F5C4A; }
.dot--rent { background: #5B4BB7; }
.ap-map { height: 380px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--ink-200); }
[hidden] { display: none !important; }
.ap-footer { margin-top: 28px; padding: 28px 0 8px; border-top: 1px solid var(--ink-200); display: grid; gap: 24px; }
.ap-footer-agent { display: flex; gap: 16px; align-items: center; }
.ap-footer-agent strong { display: block; font-size: 1.15rem; color: var(--ink-950); }
.ap-footer-agent span { display: block; color: var(--ink-600); font-size: .92rem; }
.ap-footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.ap-footer-cols h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-500); margin: 0 0 10px; }
.ap-footer-cols a, .ap-footer-cols span { display: block; color: var(--ink-800); font-size: .95rem; margin-bottom: 6px; }
.ap-footer-cols a { color: var(--zellige-700); text-decoration: none; }
.ap-footer-cols a:hover { text-decoration: underline; }

/* Agent profile header (Zillow-style): identity card + media and key numbers */
.ap-hero2 { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 1.5fr); background: #fff; border: 1px solid var(--ink-200); border-radius: var(--r-lg); overflow: hidden; }
.ap-hero-left { padding: 0 28px 28px; text-align: center; border-right: 1px solid var(--ink-200); display: flex; flex-direction: column; align-items: center; }
.ap-cover { width: calc(100% + 56px); margin: 0 -28px; height: 150px; background: #34495a; }
.ap-avatar-wrap { position: relative; margin-top: -84px; }
.ap-avatar-wrap .avatar--xl { width: 168px; height: 168px; font-size: 3rem; border: 4px solid #fff; box-shadow: var(--sh-sm); }
.ap-hero-left h1 { font-family: var(--f-display); font-size: 1.9rem; margin: 14px 0 4px; color: var(--ink-950); }
.ap-tier-line { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-700); }
.ap-agency-row { display: flex; gap: 12px; align-items: center; text-align: start; margin: 18px 0 10px; width: 100%; max-width: none; }
.ap-agency-mark { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; background: var(--ink-950); color: #fff; display: grid; place-items: center; font-weight: 700; }
.ap-agency-row strong { display: block; color: var(--ink-950); }
.ap-agency-row span { display: block; color: var(--ink-600); font-size: .9rem; white-space: nowrap; }
.ap-hero-left .ap-rating { margin: 0 0 16px; color: var(--ink-800); }
.ap-cta { display: flex; gap: 10px; width: 100%; max-width: 320px; }
.ap-cta .btn { flex: 1; }
.ap-hero-right { padding: 24px 28px 28px; display: grid; gap: 22px; align-content: start; min-width: 0; }
.ap-media { position: relative; height: 300px; border-radius: var(--r-md); overflow: hidden; background: var(--ink-100); }
.ap-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ap-media-cap { position: absolute; left: 14px; bottom: 14px; background: rgba(255,255,255,.94); color: var(--ink-950); padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: .9rem; text-decoration: none; max-width: calc(100% - 28px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-media-empty { height: 100%; display: grid; place-items: center; color: var(--ink-500); }
.ap-stats4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
.ap-stats4 dd { margin: 0; font-family: var(--f-display); font-size: 1.35rem; font-weight: 600; color: var(--ink-950); }
.ap-stats4 dt { font-size: .8rem; color: var(--ink-500); margin-top: 2px; }
@media (max-width: 1024px) {
  .ap-hero2 { grid-template-columns: 1fr; }
  .ap-hero-left { border-right: 0; border-bottom: 1px solid var(--ink-200); }
  .ap-stats4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) { .ap-media { height: 220px; } }

/* Agent header: media carousel and aligned key numbers */
.ap-carousel { position: relative; }
.ap-car-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; border-radius: var(--r-md); scrollbar-width: none; }
.ap-car-track::-webkit-scrollbar { display: none; }
.ap-car-slide { margin: 0; scroll-snap-align: start; position: relative; height: 300px; border-radius: var(--r-md); overflow: hidden; background: var(--ink-100); }
.ap-car-slide img, .ap-car-slide iframe { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.ap-car-slide figcaption { position: absolute; left: 14px; bottom: 14px; background: rgba(255,255,255,.94); color: var(--ink-950); padding: 6px 12px; border-radius: 999px; font-weight: 600; font-size: .88rem; max-width: calc(100% - 28px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-car-map { height: 100%; display: grid; place-content: center; text-align: center; gap: 6px; background: var(--ink-50); color: var(--ink-950); text-decoration: none; padding: 20px; }
.ap-car-map span { font-family: var(--f-display); font-size: 1.3rem; }
.ap-car-map small { color: var(--zellige-700); font-weight: 600; }
.ap-car-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); box-shadow: var(--sh-sm); font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ink-950); }
.ap-car-prev { left: 12px; }
.ap-car-next { right: 12px; }
.ap-stats4 { align-items: start; }
.ap-stats4 > div { min-width: 0; }
.ap-stats4 dd { font-size: 1.2rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.5em; }
.ap-stats4 dt { font-size: .8rem; line-height: 1.35; min-height: 2.7em; }
@media (max-width: 1024px) { .ap-stats4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ap-stats4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ap-car-slide { height: 220px; } }

/* Agent header v3: carousel controls (dots + pause) and a large, centred stats row */
.ap-car-bar { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; }
.ap-dots { display: flex; align-items: center; gap: 10px; background: #2a2d36; border-radius: 999px; padding: 10px 16px; }
.ap-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: #9aa0ad; cursor: pointer; }
.ap-dot.is-on { background: #fff; transform: scale(1.15); }
.ap-pause { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #2a2d36; background: #fff; cursor: pointer; display: grid; place-items: center; }
.ap-pause:focus-visible, .ap-dot:focus-visible { outline: 2px solid var(--zellige-600); outline-offset: 3px; }
.ap-pause-icon { width: 12px; height: 14px; position: relative; }
.ap-pause-icon::before, .ap-pause-icon::after { content: ''; position: absolute; top: 0; width: 4px; height: 14px; background: var(--ink-950); border-radius: 1px; }
.ap-pause-icon::before { left: 0; }
.ap-pause-icon::after { right: 0; }
.ap-pause.is-paused .ap-pause-icon { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent var(--ink-950); background: none; }
.ap-pause.is-paused .ap-pause-icon::before, .ap-pause.is-paused .ap-pause-icon::after { display: none; }
.ap-stats4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; text-align: center; }
.ap-stats4 > div { display: grid; gap: 6px; align-content: start; }
.ap-stats4 dd { margin: 0; font-family: var(--f-body, inherit); font-size: clamp(1.25rem, 2.4vw, 2rem); font-weight: 700; color: var(--ink-950); line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-stats4 dt { margin: 0; font-size: clamp(.8rem, 1.1vw, 1rem); color: var(--ink-500); line-height: 1.3; min-height: 2.6em; }
@media (max-width: 640px) { .ap-stats4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Agent profile editor and public header photo */
.ap-avatar-img { width: 168px; height: 168px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: var(--sh-sm); display: block; }

/* Agency mark / logo in the agent header (fixes off-centre initials) */
.ap-agency-row .ap-agency-mark { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; background: var(--ink-950); color: #fff; font-size: .95rem; font-weight: 700; line-height: 1; }
.ap-agency-row .ap-agency-logo { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid var(--ink-200); padding: 4px; }

/* Top agent badge: gold rosette with the brand mark (replaces the plain pill) */
.ap-top { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--ink-200); border-radius: 999px; padding: 8px 16px 8px 10px; box-shadow: 0 6px 18px rgba(15,26,43,.14); white-space: nowrap; }
.ap-medal { display: grid; place-items: center; width: 36px; height: 40px; }
.ap-medal img { max-width: 36px; max-height: 40px; object-fit: contain; }
.ap-medal svg { display: block; }
.ap-top-text { display: grid; line-height: 1.2; text-align: start; }
.ap-top-text b { font-size: .95rem; color: var(--ink-950); }
.ap-top-text small { font-size: .78rem; color: var(--ink-500); }

/* ==========================================================================
   ONE CARD STYLE. Final word for every listing card (article.card): home,
   search, agent profile, project pages. Matches the reference card: photo on
   top at a fixed ratio, price, specs, location, tags, agent footer at the bottom.
   Mobile-only markup is hidden so the same layout shows on every screen size.
   ========================================================================== */
article.card {
  display: flex !important; flex-direction: column !important;
  padding: 0 !important; margin: 0 !important;
  background: #fff !important; border: 1px solid var(--ink-200) !important;
  border-radius: var(--r-lg) !important; overflow: hidden !important;
}
article.card .card-media {
  position: relative !important; flex: 0 0 auto !important;
  width: 100% !important; height: auto !important;
  aspect-ratio: 16 / 11 !important; border-radius: 0 !important;
  overflow: hidden !important; background: var(--ink-100) !important;
}
article.card .card-media > a { position: absolute; inset: 0; display: block; }
article.card .card-media img {
  position: absolute !important; inset: 0 !important;
  width: 100% !important; height: 100% !important;
  object-fit: cover !important; border-radius: 0 !important;
}
article.card .card-body {
  display: flex !important; flex-direction: column !important;
  flex: 1 1 auto !important; padding: 16px 18px 18px !important; gap: 0 !important;
}
article.card .card-body > * { order: 0 !important; }
article.card .card-meta, article.card .m-only { display: none !important; }
article.card .card-specs.d-only { display: flex !important; }
article.card .card-foot.d-only { display: flex !important; margin-top: auto !important; }

/* Home search: smaller text, animated example overlay that never clips. */
[data-typing-box] { position: relative; }
[data-typing-box] input { font-size: 1rem !important; text-align: left !important; }
[data-typing-box].is-typing input::placeholder { color: transparent; }
.hs-ph {
  position: absolute; left: 52px; right: 130px; top: 50%; transform: translateY(-50%);
  font-size: 1rem; color: var(--ink-500); white-space: nowrap; overflow: hidden;
  pointer-events: none; text-align: left; direction: ltr;
}
.hs-ph::after {
  content: ""; display: inline-block; width: 1px; height: 1.1em; margin-left: 2px;
  background: var(--ink-500); vertical-align: -0.2em; animation: hs-caret 1s steps(1) infinite;
}
@keyframes hs-caret { 50% { opacity: 0; } }
@media (max-width: 760px) { .hs-ph { right: 110px; } }


/* Agent properties page: Landify-style list + map layout. */
.lf { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; background: #f5f6fa; }
.lf .dash-side { background: #fff; border-right: 1px solid #e6e8ef; padding: 22px 16px; }
.lf-main { padding: 22px 24px; min-width: 0; }
.lf-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.lf-head h1 { margin: 0; font-size: 1.5rem; }
.lf-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff; border: 1px solid #e6e8ef; border-radius: 12px; padding: 10px 12px; margin-bottom: 16px; }
.lf-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.lf-tab { padding: 7px 12px; border-radius: 8px; font-size: .88rem; color: var(--ink-600); text-decoration: none; }
.lf-tab.is-active { background: #eef3ff; color: #2563eb; font-weight: 600; }
.lf-count { font-size: .88rem; color: var(--ink-500); }
.lf-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.lf-list { display: flex; flex-direction: column; gap: 14px; }
.lf-card { display: grid; grid-template-columns: 210px 1fr; background: #fff; border: 1px solid #e6e8ef; border-radius: 14px; overflow: hidden; }
.lf-photo { position: relative; height: 150px; background: #e9ecf3; }
.lf-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lf-ref, .lf-status { position: absolute; top: 10px; font-size: .74rem; font-weight: 600; background: #fff; border-radius: 999px; padding: 3px 9px; }
.lf-ref { left: 10px; color: #2563eb; }
.lf-status { right: 10px; display: inline-flex; align-items: center; gap: 5px; color: var(--ink-700); }
.lf-info { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lf-price { font-size: 1.2rem; font-weight: 700; color: var(--ink-950); }
.lf-title { font-size: .92rem; color: var(--ink-700); }
.lf-addr { font-size: .86rem; color: var(--ink-500); }
.lf-stats { display: flex; gap: 14px; margin: 6px 0; font-size: .9rem; color: var(--ink-700); }
.lf-stats span { display: inline-flex; align-items: center; gap: 5px; }
.lf-actions { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.lf-pager { display: flex; gap: 6px; justify-content: flex-end; margin-top: 6px; }
.lf-pager a { min-width: 34px; text-align: center; padding: 6px 10px; border: 1px solid #e6e8ef; border-radius: 8px; background: #fff; color: var(--ink-700); text-decoration: none; font-size: .88rem; }
.lf-pager a.is-active { background: #2563eb; border-color: #2563eb; color: #fff; }
.lf-map { position: sticky; top: 16px; height: 78vh; border-radius: 14px; border: 1px solid #e6e8ef; background: #eef1f6 linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px) 0 0 / 48px 48px, linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px) 0 0 / 48px 48px; overflow: hidden; }
.lf-pin { position: absolute; transform: translate(-50%, -100%); text-decoration: none; display: flex; flex-direction: column; align-items: center; }
.lf-pin-label { background: #fff; color: var(--ink-950); font-size: .8rem; font-weight: 700; padding: 5px 9px; border-radius: 8px; box-shadow: 0 2px 8px rgba(16,24,40,.12); white-space: nowrap; }
.lf-pin-dot { width: 12px; height: 12px; border-radius: 50%; background: #2563eb; border: 2px solid #fff; margin-top: 4px; box-shadow: 0 0 0 4px rgba(37,99,235,.18); }
.lf-map-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-500); }
@media (max-width: 1100px) { .lf-body { grid-template-columns: 1fr; } .lf-map { position: relative; top: 0; height: 360px; } }
@media (max-width: 760px) { .lf { grid-template-columns: 1fr; } .lf .dash-side { display: none; } .lf-card { grid-template-columns: 1fr; } .lf-photo { height: 190px; } }

/* Agent dashboard: same Landify-style layout as the properties page. */
.lf-sub { margin: 4px 0 0; color: var(--ink-500); font-size: .92rem; }
.lf-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.lf-kpi { background: #fff; border: 1px solid #e6e8ef; border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.lf-kpi span { font-size: .85rem; color: var(--ink-500); }
.lf-kpi strong { font-size: 1.7rem; color: var(--ink-950); font-weight: 700; }
.lf-kpi-sm { font-size: 1.3rem !important; }
.lf-kpi small { font-size: .8rem; color: var(--ink-500); }
.lf-kpi--accent { background: #2563eb; border-color: #2563eb; }
.lf-kpi--accent span, .lf-kpi--accent strong, .lf-kpi--accent small { color: #fff; }
.lf-kpi--warn strong { color: #b45309; }
.lf-two { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.lf-panel { background: #fff; border: 1px solid #e6e8ef; border-radius: 14px; overflow: hidden; }
.lf-panel-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid #e6e8ef; }
.lf-panel-head h3 { margin: 0; font-size: 1rem; }
.lf-panel-head a { font-size: .86rem; }
.lf-empty { padding: 16px; color: var(--ink-500); margin: 0; }
.lf-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #f0f2f7; color: inherit; text-decoration: none; }
.lf-row:last-child { border-bottom: 0; }
.lf-thumb { width: 64px; height: 48px; border-radius: 8px; object-fit: cover; flex: 0 0 64px; background: #e9ecf3; }
.lf-avatar { width: 40px; height: 40px; border-radius: 50%; background: #eef3ff; color: #2563eb; display: grid; place-items: center; font-weight: 700; flex: 0 0 40px; }
.lf-row-main { flex: 1; min-width: 0; }
.lf-row-title { font-weight: 600; color: var(--ink-950); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lf-row-sub { font-size: .84rem; color: var(--ink-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lf-row-num { text-align: center; min-width: 58px; }
.lf-row-num strong { display: block; color: var(--ink-950); }
.lf-row-num small { font-size: .72rem; color: var(--ink-500); }
.lf-row-tags { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
@media (max-width: 1100px) { .lf-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lf-two { grid-template-columns: 1fr; } }

/* City cards on the home page: a skyline image for each city. */
.city-card { overflow: hidden; }
.city-img { margin: -1px -1px 0; height: 150px; overflow: hidden; border-radius: 14px 14px 0 0; background: #e9ecf3; }
.city-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.city-card:hover .city-img img { transform: scale(1.04); }

/* Financement section: light, with category-style tiles (matches "Explore categories"). */
.fin-sec { background: #fff; }
.fin-head { max-width: 760px; margin-bottom: 36px; }
.fin-head h2 { margin: 8px 0 12px; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.fin-lede { color: var(--ink-600); max-width: 60ch; margin: 0; }
.fin-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.fin-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.fin-tile { background: #eff0fb; border-radius: 22px; padding: 26px 24px; min-height: 190px; display: flex; flex-direction: column; gap: 10px; transition: transform .2s ease, box-shadow .2s ease; }
.fin-tile:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(30,30,120,.10); }
.fin-ico { width: 52px; height: 52px; border-radius: 14px; background: #fff; color: #1f1fb4; display: grid; place-items: center; margin-bottom: 8px; }
.fin-tile h4 { margin: 0; font-size: 1.08rem; color: var(--ink-950); }
.fin-tile p { margin: 0; color: var(--ink-600); font-size: .92rem; line-height: 1.55; }

/* Explore categories: orange brand tiles with icons (home page). */
.cat-sec { background: #fff; }
.cat-title { margin: 0 0 26px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 14px; }
.cat-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 150px; padding: 20px 12px; border-radius: 22px; background: var(--accent-100, #FFECE5); color: var(--accent-600, #D6420E); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.cat-tile:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(214,66,14,.16); background: #ffe2d6; }
.cat-ico { width: 60px; height: 60px; border-radius: 16px; background: #fff; display: grid; place-items: center; color: var(--accent-600, #D6420E); }
.cat-lbl { font-weight: 600; font-size: .95rem; color: var(--ink-950, #111); text-align: center; }

/* Explore categories on mobile: a swipeable carousel (desktop keeps the grid). */
@media (max-width: 760px) {
  .cat-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding: 4px 2px 14px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-padding: 0 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .cat-grid::-webkit-scrollbar { display: none; }
  .cat-tile { flex: 0 0 38%; min-width: 132px; scroll-snap-align: start; min-height: 136px; }
  .cat-ico { width: 52px; height: 52px; }
}

/* Footer layout (brand block, link columns, legal row, social bar, notices) in our colours. */
.ft { padding: 56px 0 26px; }
.ft-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.ft-brand { display: flex; flex-direction: column; gap: 10px; }
.ft-blurb { font-size: .9rem; max-width: 36ch; color: var(--ink-500); margin: 4px 0 0; }
.ft-contact { font-size: .92rem; color: var(--ink-300, #cbd5e1); margin: 0; }
.ft-login { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.ft-btn { display: inline-block; padding: 10px 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,.25); color: #fff; text-decoration: none; font-size: .9rem; font-weight: 600; }
.ft-btn--solid { background: var(--accent-600, #D6420E); border-color: var(--accent-600, #D6420E); }
.ft-btn:hover { opacity: .9; }
.ft-h { font-size: 1rem; margin: 0 0 14px; color: #fff; }
.ft-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ft-list a { color: var(--ink-300, #cbd5e1); text-decoration: none; font-size: .95rem; }
.ft-list a:hover { color: #fff; }
.ft-list--row { flex-direction: row; flex-wrap: wrap; gap: 6px 22px; }
.ft-legal { margin-top: 36px; }
.ft-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); }
.ft-social { display: flex; gap: 16px; }
.ft-social a { color: #fff; opacity: .85; display: inline-flex; }
.ft-social a:hover { opacity: 1; color: var(--accent-600, #D6420E); }
.ft-copy { font-size: .88rem; color: var(--ink-300, #cbd5e1); }
.ft-notice { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 18px; font-size: .82rem; color: var(--ink-500); }
@media (max-width: 900px) { .ft-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ft-grid { grid-template-columns: 1fr; } }

/* Compact search bar (scrolled): the animated example would run under the narrower button,
   so show the normal placeholder there instead. */
.hero-search-card.is-stuck .hs-ph { display: none; }
.hero-search-card.is-stuck [data-typing-box].is-typing input::placeholder { color: var(--ink-500); }

/* Hero tabs on phones: only Buy, Rent and Agents, with mobile tap sizes. Desktop unchanged. */
@media (max-width: 760px) {
  .hero-tab--desk { display: none !important; }
  .hero-tabs { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 8px; }
  .hero-tabs .hero-tab { min-height: 44px; padding: 10px 6px; font-size: .95rem; text-align: center; display: flex; align-items: center; justify-content: center; }
}

/* Hero on phones: no counter pill, a clean search field (static placeholder), centred headline and intro. Desktop unchanged. */
@media (max-width: 760px) {
  .hero-chips .hs-chip--badge { display: none !important; }
  [data-typing-box] .hs-ph { display: none !important; }
  [data-typing-box].is-typing input::placeholder { color: var(--ink-500); }
  .hero-head { text-align: center; }
  .hero-head h1, .hero-head .section-lede { text-align: center; margin-left: auto; margin-right: auto; }
}

/* Phones: hide the "biens en ligne" counter wherever it appears in the hero. Desktop unchanged. */
@media (max-width: 760px) {
  .hs-chip--badge { display: none !important; }
}

/* City cards on phones: photo fills the card, space under the count, smoother swipe. Desktop unchanged. */
@media (max-width: 760px) {
  .hm-loop:has(.city-card) { scroll-behavior: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
  .city-card { padding: 0 !important; }
  .city-card .city-img { margin: 0; height: 150px; border-radius: 14px 14px 0 0; }
  .city-card .city-img img { width: 100%; height: 100%; object-fit: cover; }
  .city-card .card-body { padding: 14px 16px 18px; }
  .city-card .card-body > *:last-child { margin-bottom: 4px; }
}

/* City card photo: fill the whole card width and the photo area. Phones only. */
@media (max-width: 760px) {
  .city-card { display: flex; flex-direction: column; }
  .city-card .city-img { width: 100%; align-self: stretch; }
  .city-card .city-img img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
}

/* Card rows on phones: the same touch and snap behaviour as the city row. Desktop unchanged. */
@media (max-width: 760px) {
  .hm-rail { overscroll-behavior-x: contain; scroll-behavior: auto; }
}

/* City cards on phones: the photo fills the whole card, with no grey edges. */
@media (max-width: 760px) {
  .city-card { padding: 0 !important; margin: 0 !important; }
  .city-card > .city-img { margin: 0 !important; padding: 0 !important; width: 100% !important; box-sizing: border-box; height: 150px !important; }
  .city-card > .city-img img { display: block !important; width: 100% !important; height: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; object-fit: cover !important; }
}

/* Results page, phone filter sheet (Zillow-style): one scrolling list of all filters.
   Desktop and tablet are unchanged. Everything here applies only at 760px and below. */
.srp-mfilter, .srp-mhead, .srp-mfoot, .fdrop-mhead { display: none; }
@media (max-width: 760px) {
  .srp-mfilter { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; padding: 0 16px; border: 1px solid var(--ink-300); border-radius: 12px; background: #fff; color: var(--ink-900); font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; }
  .srp-filters .srp-chips { display: none; }

  /* Sheet: full screen, header on top, one scrolling list, bottom bar */
  .srp-filters.is-open { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; width: 100%; height: 100%; max-width: none; margin: 0; padding: 0; background: #fff; border: 0; overflow: hidden; }
  .srp-filters.is-open .srp-filter-row { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; width: 100%; max-width: none; margin: 0; gap: 0; align-items: stretch; }
  .srp-filters.is-open .srp-search,
  .srp-filters.is-open .srp-mfilter,
  .srp-filters.is-open > .srp-filter-row > .btn { display: none; }
  .srp-filters.is-open .srp-mhead { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; min-height: 60px; padding: 0 20px; border-bottom: 1px solid var(--ink-200); font-weight: 800; font-size: 1.05rem; color: var(--ink-900); }
  .srp-mclose { border: 0; background: none; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--ink-900); padding: 4px 8px; }
  .srp-filters.is-open .srp-chips { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; width: 100%; margin: 0; padding: 0; gap: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }

  /* Every filter is visible inline: row button hidden, panel shown as part of the list */
  .srp-filters.is-open .srp-chips .fdrop { display: block; position: static; width: 100%; padding: 18px 20px 20px; border-bottom: 1px solid var(--ink-200); }
  .srp-filters.is-open .srp-chips .fdrop .fdrop-btn { display: none; }
  .srp-filters.is-open .srp-chips .fdrop .fdrop-mhead,
  .srp-filters.is-open .srp-chips .fdrop .fdrop-foot { display: none; }
  .srp-filters.is-open .srp-chips .fdrop .fdrop-panel {
    display: block; position: static; inset: auto; top: auto; bottom: auto; left: auto; right: auto; transform: none;
    width: 100%; min-width: 0; max-width: none; max-height: none; height: auto; overflow: visible;
    margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: #fff; visibility: visible; opacity: 1; z-index: auto;
  }
  .srp-filters.is-open .srp-chips .fdrop .fdrop-label {
    font-size: 1.05rem; font-weight: 800; color: var(--ink-900); text-transform: none; letter-spacing: 0; margin: 0 0 12px;
  }

  /* Bottom bar: always visible */
  .srp-filters.is-open .srp-mfoot { display: flex; flex: 0 0 auto; align-items: center; gap: 14px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--ink-200); background: #fff; }
  .srp-mreset { color: var(--accent-700, #B33A0B); font-weight: 700; text-decoration: none; white-space: nowrap; padding: 0 4px; }
  .srp-mgo { flex: 1; min-height: 50px; border: 0; border-radius: 12px; background: var(--accent-600, #D6420E); color: #fff; font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; }
}

/* Filter sheet, phones: fixed positions so the list has a real height and is the only thing that scrolls.
   Header at the top, list in the middle, bottom bar at the bottom. The page behind stays still. */
body.srp-sheet-open { overflow: hidden !important; }
@media (max-width: 760px) {
  .srp-filters.is-open { position: fixed !important; inset: 0 !important; z-index: 1000 !important; overflow: hidden !important; overscroll-behavior: contain; }
  .srp-filters.is-open .srp-filter-row { position: absolute !important; inset: 0 !important; display: block !important; width: 100% !important; height: 100% !important; margin: 0 !important; }
  .srp-filters.is-open .srp-mhead { position: absolute !important; top: 0 !important; left: 0 !important; right: 0 !important; height: 60px !important; box-sizing: border-box; }
  .srp-filters.is-open .srp-chips { position: absolute !important; top: 60px !important; bottom: 74px !important; left: 0 !important; right: 0 !important; display: block !important; overflow-y: auto !important; overflow-x: hidden !important; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 0 !important; margin: 0 !important; }
  .srp-filters.is-open .srp-mfoot { position: absolute !important; left: 0 !important; right: 0 !important; bottom: 0 !important; height: 74px !important; box-sizing: border-box; display: flex !important; }
  .srp-filters.is-open .srp-chips .fdrop { display: block !important; }
}

/* Sale / rent choice: only the selected one is orange. Touch hover no longer colours the other one. */
.seg button.sf-mode { background: #fff; color: var(--ink-800); border-color: var(--ink-300); }
.seg button.sf-mode:hover:not([aria-pressed=true]) { border-color: var(--ink-300); background: #fff; color: var(--ink-800); }
.seg button.sf-mode[aria-pressed=true] { background: var(--accent-100); border-color: var(--accent-500); color: var(--accent-700); }
.seg button.sf-mode.sf-on { background: var(--accent-100); border-color: var(--accent-500); color: var(--accent-700); }

/* Sale / rent choice as native radio buttons: the checked one is orange. */
.sf-mode-opt { position: relative; display: block; margin: 0 0 6px; cursor: pointer; }
.sf-mode-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.sf-mode-opt span { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 16px; border: 1px solid var(--ink-300); border-radius: 999px; background: #fff; color: var(--ink-800); font-weight: 600; font-size: .92rem; }
.sf-mode-opt input:checked + span { background: var(--accent-100); border-color: var(--accent-500); color: var(--accent-700); }
.sf-mode-opt input:focus-visible + span { outline: 2px solid var(--accent-500); outline-offset: 2px; }

/* Burger menu: identical on every public page on phones (home, buy, sell, search, listings, ...).
   The button is always visible with a proper touch size; the panel opens under the header and above the page content. */
@media (max-width: 760px) {
  .site-header { z-index: 1100; }
  .site-header .nav-toggle { display: inline-flex !important; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
  .site-header .nav-panel { top: var(--header-h) !important; z-index: 1200; }
  .site-header .nav-panel.is-open { display: block !important; }
}

/* Burger menu: the header's logo and button are the only ones; hide the panel's copy of them. */
@media (max-width: 760px) {
  .site-header .nav-panel .nav-sheet-top,
  .site-header .nav-panel .nav-close { display: none !important; }
}

/* =========================================================================
   Project detail (projets neufs) — phone layout
   Applies only at phone widths; desktop and tablet rules are unchanged.
   ========================================================================= */
@media (max-width: 760px) {
  .np-head { padding-top: 16px; }
  .np-head h1 { font-size: 24px; line-height: 1.2; }
  .np-sub { font-size: 15px; line-height: 1.5; }

  .np-cols { padding-left: 16px; padding-right: 16px; gap: 24px; }
  .np-block { padding: 20px 0; scroll-margin-top: 72px; }
  .np-block h2 { font-size: 20px; }

  /* gallery: one large hero photo with a short strip beneath */
  .np-gallery { height: 260px; border-radius: 14px; gap: 6px; }
  .np-g-all { font-size: 14px; padding: 8px 12px; min-height: 40px; }

  .np-media-tiles { grid-template-columns: 1fr; gap: 10px; }
  .np-tile { min-height: 64px; }

  /* tables scroll sideways inside their own box instead of breaking the page */
  .np-table-wrap { margin-left: -16px; margin-right: -16px; border-radius: 0; border-left: 0; border-right: 0; }
  .np-table th, .np-table td { padding: 10px 12px; white-space: nowrap; font-size: 14px; }
  .np-table--lots { min-width: 620px; }
  .np-acc > summary { min-height: 56px; padding: 12px 0; }
  .np-acc-size { font-size: 14px; }

  .np-facts, .np-amen { grid-template-columns: 1fr; gap: 10px; }
  .np-dev, .np-dev-info { flex-wrap: wrap; gap: 12px; }

  /* price card and contact: full width, large tap targets */
  .np-side { gap: 14px; }
  .np-side-card { padding: 18px; border-radius: 16px; }
  .np-side-price { font-size: 1.7rem; }
  .np-side-links a, .np-side-links button { min-height: 48px; display: flex; align-items: center; justify-content: center; }
  .np-side input, .np-side select, .np-side textarea,
  .np-block input, .np-block select, .np-block textarea { font-size: 16px; min-height: 46px; }
  .np-side textarea { min-height: 96px; }

  .np-faq > details > summary, .np-faq summary { min-height: 48px; padding: 12px 0; line-height: 1.4; }

  /* full-screen sheets for photo viewer and forms */
  .np-modal { padding: 0; align-items: stretch; }
  .np-modal-box, .np-modal-box--wide {
    width: 100%; max-width: 100%; height: 100%; max-height: 100%;
    border-radius: 0; margin: 0; overflow-y: auto;
  }
  .np-modal-x { width: 44px; height: 44px; }
  .np-lb-prev, .np-lb-next { width: 44px; height: 44px; }
  .np-lb-count { font-size: 14px; }

  img, video, iframe { max-width: 100%; }
  .np-main, .np-cols, .np-block, .np-side { min-width: 0; }
}

/* ---- project detail: pro-style phone actions (phones only) ---- */
.pd-tabs, .pd-mbar { display: none; }
@media (max-width: 760px) {
  /* section tabs under the header, like listing apps */
  .pd-tabs { display: flex; position: sticky; top: var(--header-h, 64px); z-index: 40; gap: 4px; overflow-x: auto; scrollbar-width: none; background: #fff; border-bottom: 1px solid var(--ink-200); padding: 0 12px; margin: 0 -16px; }
  .pd-tabs::-webkit-scrollbar { display: none; }
  .pd-tabs a { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px; color: var(--ink-600); font-weight: 600; font-size: 15px; text-decoration: none; border-bottom: 2px solid transparent; }
  .pd-tabs a:active, .pd-tabs a:focus-visible { color: var(--ink-900); border-bottom-color: var(--accent-500); }

  /* photos: swipe through every photo with snapping */
  .np-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; height: 280px; gap: 8px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .np-gallery::-webkit-scrollbar { display: none; }
  .np-gallery .np-g-item, .np-gallery .np-g-item:nth-child(n+3) { display: block; flex: 0 0 88%; height: 100%; scroll-snap-align: center; border-radius: 14px; overflow: hidden; }
  .np-gallery .np-g-item:first-child { grid-row: auto; }
  .np-gallery .np-g-item img { width: 100%; height: 100%; object-fit: cover; }
  .np-g-all { position: absolute; right: 12px; bottom: 12px; z-index: 2; min-height: 40px; border-radius: 10px; background: rgba(15,23,42,.78); color: #fff; border: 0; padding: 8px 12px; font-size: 14px; }

  /* sticky bottom bar: price and contact always reachable */
  body { padding-bottom: 84px; }
  .pd-mbar { display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--ink-200); box-shadow: 0 -4px 16px rgba(15,23,42,.08); }
  .pd-mbar-price { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
  .pd-mbar-price span { font-size: 12px; color: var(--ink-500); }
  .pd-mbar-price b { font-family: var(--f-display); font-size: 19px; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pd-mbar-cta { margin-left: auto; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 12px; background: var(--accent-600); color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; }
  .pd-mbar-cta:active { background: var(--accent-700); }

  /* contact card reads as a clear panel */
  .np-side-card { box-shadow: 0 1px 2px rgba(16,24,40,.06); }
  #contact { scroll-margin-top: 120px; }
  .np-block { scroll-margin-top: 120px; }
}

/* =========================================================================
   PROJECT DETAIL — app-style phone layout (Zillow / PropertyFinder style)
   Phones only. Desktop is untouched.
   ========================================================================= */
.pd-mhead, .pd-sheet-x, .pd-sheet-grab { display: none; }

@media (max-width: 760px) {
  body { padding-bottom: 88px; background: #fff; }

  /* 1. full-bleed photo carousel */
  .np-head { padding: 14px 16px 6px; }
  .np-head h1 { font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; }
  .np-sub { font-size: 14px; color: var(--ink-600); margin-top: 6px; }
  .wrap:has(> .np-gallery), .np-gallery { margin: 0; }
  .wrap:has(> .np-gallery) { padding: 0; }
  .np-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; height: 300px; gap: 0; border-radius: 0; scrollbar-width: none; }
  .np-gallery::-webkit-scrollbar { display: none; }
  .np-gallery .np-g-item, .np-gallery .np-g-item:nth-child(n+3) { display: block; flex: 0 0 100%; height: 100%; scroll-snap-align: start; border-radius: 0; }
  .np-gallery .np-g-item img { width: 100%; height: 100%; object-fit: cover; }
  .np-g-all { position: absolute; right: 14px; bottom: 14px; z-index: 2; min-height: 40px; padding: 8px 14px; border-radius: 999px; background: rgba(15,23,42,.8); color: #fff; border: 0; font-size: 14px; font-weight: 600; }
  .np-media-tiles { padding: 0 16px; }

  /* 2. price and stats under the title, like the listing apps */
  .pd-mhead { display: block; padding: 16px 16px 4px; }
  .pd-price-m { display: flex; flex-direction: column; }
  .pd-price-m span { font-size: 13px; color: var(--ink-500); }
  .pd-price-m b { font-family: var(--f-display); font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
  .pd-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
  .pd-stats > div { background: var(--ink-50); border: 1px solid var(--ink-200); border-radius: 14px; padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .pd-stats b { font-size: 16px; font-weight: 700; color: var(--ink-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pd-stats span { font-size: 12px; color: var(--ink-600); line-height: 1.3; }

  /* 3. sticky section tabs, underline style */
  .pd-tabs { display: flex; position: sticky; top: var(--header-h, 64px); z-index: 40; gap: 2px; overflow-x: auto; scrollbar-width: none; background: #fff; border-bottom: 1px solid var(--ink-200); padding: 0 8px; margin: 12px 0 0; }
  .pd-tabs::-webkit-scrollbar { display: none; }
  .pd-tabs a { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px; color: var(--ink-600); font-weight: 600; font-size: 15px; text-decoration: none; border-bottom: 2px solid transparent; }
  .pd-tabs a:active { color: var(--ink-900); border-bottom-color: var(--accent-500); }

  /* 4. two-column body becomes one column of sections */
  .np-cols { display: block; padding: 0 16px; }
  .np-block { padding: 24px 0; border-bottom: 1px solid var(--ink-200); scroll-margin-top: 120px; }
  .np-block:last-of-type { border-bottom: 0; }
  .np-block h2 { font-size: 20px; font-weight: 700; margin: 0 0 14px; letter-spacing: -0.01em; }
  .np-about { font-size: 16px; line-height: 1.6; color: var(--ink-700); }

  .np-facts, .np-amen { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .np-facts > *, .np-amen > * { background: var(--ink-50); border: 1px solid var(--ink-200); border-radius: 14px; padding: 12px; font-size: 14px; }

  /* lots: cards instead of a wide table */
  .np-table-wrap { border: 0; border-radius: 0; margin: 0; overflow: visible; }
  .np-table thead { display: none; }
  .np-table, .np-table tbody { display: block; width: 100%; }
  .np-table--lots tbody { display: flex; flex-direction: column; gap: 10px; }
  .np-table--lots tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; border: 1px solid var(--ink-200); border-radius: 16px; padding: 14px; background: #fff; }
  .np-table--lots td { display: flex; flex-direction: column; border: 0; padding: 0; font-size: 15px; white-space: normal; background: none; }
  .np-table--lots td::before { content: attr(data-label); font-size: 12px; color: var(--ink-500); margin-bottom: 2px; }
  .np-table--lots td:first-child { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .np-table--lots td:first-child::before { content: none; }
  .np-table--lots td:first-child b { font-size: 18px; }
  .np-table--lots td[data-label="Prix"] b, .np-table--lots td[data-label="Prix"] { font-weight: 700; font-size: 17px; }
  .np-table--lots td[data-label="Plans"] { grid-column: 1 / -1; }
  .np-table--lots td[data-label="Plans"] a { display: inline-flex; align-items: center; min-height: 44px; }
  .np-acc > summary { min-height: 56px; padding: 14px 0; }

  /* FAQ accordion */
  .np-faq summary { min-height: 52px; display: flex; align-items: center; padding: 12px 0; font-weight: 600; font-size: 16px; }
  .np-faq p { font-size: 15px; line-height: 1.6; color: var(--ink-700); margin: 0 0 12px; }

  /* map: short strip with clear title */
  .np-map--detail { height: 240px; border-radius: 16px; }

  /* 5. contact card becomes a bottom sheet opened by "Contacter" (CSS-only, via :target) */
  .np-cols > .np-side#contact {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 2000;
    max-height: 88vh; overflow-y: auto; order: 0; display: block;
    background: #fff; border-radius: 22px 22px 0 0; padding: 12px 16px calc(20px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -12px 40px rgba(15,23,42,.22);
    transform: translateY(104%); visibility: hidden;
    transition: transform .28s ease, visibility .28s;
  }
  .np-cols > .np-side#contact:target { transform: translateY(0); visibility: visible; }
  .pd-sheet-grab { display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--ink-300); margin: 0 auto 10px; }
  .pd-sheet-x { display: flex; position: absolute; right: 14px; top: 12px; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; background: var(--ink-100); color: var(--ink-900); font-size: 18px; text-decoration: none; }
  .np-side-card { border: 0; background: none; padding: 0 0 8px; }
  .np-side-price { font-size: 26px; }
  .np-side-card .btn { min-height: 50px; font-size: 16px; border-radius: 14px; }
  .np-side-links a { min-height: 52px; display: flex; flex-direction: column; justify-content: center; }
  body:has(#contact:target)::after { content: ""; position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 1999; }
  body:has(#contact:target) .pd-mbar { display: none; }

  /* 6. bottom action bar: brochure and contact, like the big apps */
  .pd-mbar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--ink-200); box-shadow: 0 -4px 16px rgba(15,23,42,.08); }
  .pd-mbar > * { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 14px; font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; }
  .pd-mbar-sec { background: #fff; border: 1.5px solid var(--ink-900); color: var(--ink-900); }
  .pd-mbar-cta { background: var(--accent-600); border: 0; color: #fff; }
  .pd-mbar-cta:active { background: var(--accent-700); }
}

/* ---- listing (projets neufs): compact filter bar when scrolling (desktop/tablet) ---- */
@media (min-width: 761px) {
  .pf-search-card.is-stuck {
    position: fixed; top: var(--header-h, 72px); left: 50%; transform: translateX(-50%);
    width: min(100%, 1280px); z-index: 100; margin: 0; border-radius: 0 0 22px 22px;
    padding: 12px 24px; display: flex; flex-wrap: nowrap; align-items: center; gap: 12px;
    box-shadow: 0 8px 24px rgba(15,23,42,.12); border-top: 0;
  }
  .pf-search-card.is-stuck .pf-top-row,
  .pf-search-card.is-stuck .pf-citybar { display: none; }
  .pf-search-card.is-stuck .pf-input { order: 1; flex: 0 0 300px; height: 48px; margin: 0; padding: 0 16px; }
  .pf-search-card.is-stuck .pf-input input { font-size: 15px; }
  .pf-search-card.is-stuck .pf-pills { order: 2; flex: 1 1 0; margin: 0; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .pf-search-card.is-stuck .pf-pill, .pf-search-card.is-stuck .pf-dd, .pf-search-card.is-stuck .pf-round { flex: 0 0 auto; }
  .pf-search-card.is-stuck .pf-pills::-webkit-scrollbar { display: none; }
  .pf-search-card.is-stuck .pf-pill { height: 44px; font-size: 15px; }
  .pf-search-card.is-stuck .pf-map-btn { height: 44px; flex: 0 0 auto; margin: 0; }
}

/* ---- listing: when the filter bar docks, it replaces the site header (desktop/tablet) ---- */
@media (min-width: 761px) {
  .site-header { transition: transform .25s ease; }
  body.pf-docked .site-header { transform: translateY(-100%); }
  body.pf-docked .pf-search-card.is-stuck { top: 0; border-radius: 0 0 22px 22px; }
}

/* ---- listing: docked filter bar — dropdowns must not be clipped ---- */
@media (min-width: 761px) {
  .pf-search-card.is-stuck .pf-pills { overflow: visible; }
  .pf-search-card.is-stuck .pf-input { flex: 0 0 260px; }
  .pf-search-card.is-stuck .pf-pill { height: 44px; padding: 0 14px; font-size: 15px; gap: 6px; }
  .pf-search-card.is-stuck .pf-round { width: 44px; height: 44px; }
  .pf-search-card.is-stuck .pf-map-btn { padding: 0 18px; font-size: 16px; }
  .pf-search-card.is-stuck .pf-dd[open] { z-index: 5; }
  .pf-search-card.is-stuck .pf-panel { z-index: 120; }
}

/* ---- agent CRM: "À faire aujourd'hui" focus panel (Rex-style) ---- */
.crm-focus { background: #fff; border: 1px solid var(--ink-200); border-radius: 16px; padding: 18px 20px; margin: 0 0 18px; }
.crm-focus-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.crm-focus-head h2 { font-size: 18px; margin: 0; font-weight: 700; }
.crm-focus-total { font-size: 13px; color: var(--ink-500); }
.crm-focus-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.crm-focus-col { border: 1px solid var(--ink-200); border-radius: 12px; padding: 12px; min-width: 0; border-top-width: 3px; }
.crm-focus-col--late { border-top-color: #d92d20; }
.crm-focus-col--hot { border-top-color: #e8831a; }
.crm-focus-col--new { border-top-color: #2563eb; }
.crm-focus-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 8px; }
.crm-focus-title span { font-weight: 700; background: var(--ink-100); border-radius: 999px; padding: 1px 9px; font-size: 13px; }
.crm-focus-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.crm-focus-col li a { display: flex; flex-direction: column; text-decoration: none; color: var(--ink-900); padding: 6px 8px; border-radius: 8px; }
.crm-focus-col li a:hover { background: var(--ink-50); }
.crm-focus-col li small { color: var(--ink-500); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-focus-empty { color: var(--ink-500); font-size: 13px; margin: 0; }
.crm-focus-more { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; }
@media (max-width: 760px) {
  .crm-focus-grid { grid-template-columns: 1fr; }
}
