/* « Nuit » · la recherche d'annonces : ouverture cinématique, dock vitré, barre de filtres collante,
   fenêtres vitrées sombres (feuilles sur téléphone), grandes cartes, carte sombre, état vide, alerte. */

/* ---------- l'ouverture : un film de régions, le dock au centre du jeu ---------- */
.sx { position: relative; }
.sx-hero { min-height: max(640px, 80vh); min-height: max(640px, 80svh); }
.sx-hero .n-hero-in { width: 100%; padding-bottom: clamp(34px, 6vh, 70px); gap: clamp(14px, 1.6vw, 22px); }
.sx-film .sx-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.7s cubic-bezier(.45,0,.2,1); will-change: opacity; }
.sx-film .sx-slide.is-on { opacity: 1; z-index: 2; animation: sx-kb 16s cubic-bezier(.33,0,.4,1) forwards; }
.sx-film .sx-slide.was-on { opacity: 1; z-index: 1; transition: none; }
@keyframes sx-kb { from { transform: scale(1.09); } to { transform: scale(1); } }
.sx-hero .n-hero-shade { background:
  linear-gradient(180deg, rgba(10,10,11,.66) 0%, rgba(10,10,11,.12) 24%, rgba(10,10,11,.28) 50%, rgba(10,10,11,.8) 82%, #0a0a0b 100%),
  linear-gradient(90deg, rgba(10,10,11,.55) 0%, rgba(10,10,11,0) 62%); }
.sx-hero .n-hero-shade::after { content: ""; position: absolute; inset: 0; background: rgba(10,10,11,.5); opacity: 0; transition: opacity .7s var(--n-ease); }
.sx.is-focus .sx-hero .n-hero-shade::after { opacity: 1; }
.sx-kick { margin: 0 0 -4px; font-size: 14px; font-weight: 560; color: var(--n-fg-2); font-variant-numeric: tabular-nums; }
.sx-h1 { font-size: clamp(46px, 6.2vw, 110px); max-width: 13em; margin-left: -.04em; }
.js .sx-h1:not(.is-split) { visibility: hidden; animation: sx-vis 0s 3.2s forwards; }
.reduce .sx-h1, .no-js .sx-h1 { visibility: visible !important; animation: none; }
@keyframes sx-vis { to { visibility: visible; } }

/* le dock vitré (le modèle : l'accueil A) */
.sx-dock-w { position: relative; z-index: 6; width: min(900px, 100%); margin-top: clamp(6px, 1.2vw, 16px); }
.sx-dock { position: relative; display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 6px; text-align: left; background: rgba(20,20,22,.46); -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 30px 80px -30px rgba(0,0,0,.6); transition: background .6s, box-shadow .6s; }
.sx.is-focus .sx-dock, .sx-dock:focus-within { background: rgba(20,20,22,.74); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), 0 50px 110px -30px rgba(0,0,0,.85); }
.sx-tabs { position: relative; display: flex; flex: none; padding: 4px; border-radius: 4px; background: rgba(255,255,255,.07); }
.sx-tab { position: relative; z-index: 1; height: 44px; padding: 0 18px; border-radius: 3px; font-size: 14.5px; font-weight: 560; color: var(--n-fg-2); transition: color .35s; white-space: nowrap; }
.sx-tab:hover { color: var(--n-fg); }
.sx-tab[aria-pressed="true"] { color: var(--n-bg); }
.sx-tab:focus-visible { outline-offset: -2px; }
.sx-tab-ink { position: absolute; top: 4px; left: 0; height: 44px; width: 0; border-radius: 3px; background: var(--n-fg); transition: transform .6s var(--n-ease), width .6s var(--n-ease); }
.sx-field { position: relative; flex: 1; display: flex; align-items: center; min-width: 0; height: 52px; padding-left: 12px; }
.sx-field > .ic { flex: none; width: 20px; height: 20px; color: var(--n-fg-3); }
.sx-field input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; color: var(--n-fg); font-size: 17px; font-weight: 450; padding: 0 12px; -webkit-appearance: none; appearance: none; text-overflow: ellipsis; }
.sx-field input::-webkit-search-cancel-button { display: none; }
.sx-field input::placeholder { color: rgba(244,241,234,.44); opacity: 1; }
.sx-dock.is-typing input::placeholder { color: transparent; }
.sx-ph { position: absolute; left: 44px; right: 70px; top: 50%; transform: translateY(-50%); pointer-events: none; color: rgba(244,241,234,.6); font-size: 17px; font-weight: 450; white-space: nowrap; overflow: hidden; }
.sx-ph:empty { display: none; }
.sx-ph::after { content: ""; display: inline-block; width: 1.5px; height: 1.05em; margin-left: 2px; vertical-align: -.17em; background: var(--n-fg); animation: sx-caret 1.05s steps(1) infinite; }
@keyframes sx-caret { 50% { opacity: 0; } }
.sx-x { flex: none; width: 34px; height: 34px; margin-right: 6px; border-radius: 50%; display: grid; place-items: center; color: var(--n-fg-3); transition: color .3s, background .3s; }
.sx-x:hover { color: var(--n-fg); background: rgba(255,255,255,.08); }
.sx-x .ic { width: 16px; height: 16px; }
.sx-go { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; transition: background .3s, transform .5s var(--n-ease); }
.sx-go:hover { background: #1d5cff; }
.sx-go:hover .ic { transform: translateX(2px); }
.sx-go .ic { width: 20px; height: 20px; transition: transform .5s var(--n-ease); }
/* suggestions : elles s'ouvrent vers le haut, au-dessus du titre assombri */
.sx-sug { position: absolute; left: 0; right: 0; bottom: calc(100% + 10px); z-index: 10; list-style: none; margin: 0; padding: 6px; max-height: min(360px, 46vh); overflow: auto; border-radius: 6px; background: rgba(18,18,20,.92); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: inset 0 0 0 1px var(--n-line), 0 30px 80px -20px rgba(0,0,0,.75); text-align: left; animation: sx-sug .45s var(--n-ease); }
@keyframes sx-sug { from { opacity: 0; transform: translate3d(0, 8px, 0); } }
.sx-sug li { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 8px 12px; border-radius: 4px; cursor: pointer; font-size: 15.5px; }
.sx-sug li > .ic { flex: none; width: 18px; height: 18px; color: var(--n-fg-3); }
.sx-sug li[aria-selected="true"], .sx-sug li:hover { background: rgba(255,255,255,.08); }
.sx-sug-t { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 12px; }
.sx-sug b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; color: var(--n-fg-2); }
.sx-sug mark { background: none; color: var(--n-fg); font-weight: 600; }
.sx-sug small { flex: none; margin-left: auto; font-size: 13px; color: var(--n-fg-3); white-space: nowrap; }
.sx-towns { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin: 2px 0 0; font-size: 13.5px; color: var(--n-fg-3); }
.sx-towns span { margin-right: 2px; }
.sx-towns a { color: var(--n-fg-2); padding-bottom: 2px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; background-color: transparent; transition: color .3s, background-size .6s var(--n-ease); }
.sx-towns a:hover { color: var(--n-fg); background-size: 0 1px; background-position: 100% 100%; }

/* ---------- la barre des filtres, collée sous l'en-tête ---------- */
.sx-bar { position: sticky; top: var(--hd); z-index: 40; background: rgba(10,10,11,.8); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); border-bottom: 1px solid var(--n-line-2); }
.sx-bar-in { display: flex; align-items: center; gap: 10px; padding: 12px var(--gut); }
.sx-mini { flex: none; display: grid; place-items: center; width: 0; height: 42px; margin-right: -10px; border-radius: 50%; overflow: hidden; opacity: 0; color: var(--n-fg); box-shadow: inset 0 0 0 1px var(--n-line); transition: width .6s var(--n-ease), margin .6s var(--n-ease), opacity .4s, background .3s; }
.sx-mini .ic { flex: none; width: 18px; height: 18px; }
.sx-bar.is-stuck .sx-mini { width: 42px; margin-right: 0; opacity: 1; }
.sx-mini:hover { background: rgba(255,255,255,.08); }
.sx-filters { display: flex; gap: 6px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.sx-filters::-webkit-scrollbar { display: none; }
.sx-f { flex: none; display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 12px 0 15px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--n-line); font-size: 14px; font-weight: 540; color: var(--n-fg); white-space: nowrap; transition: background .3s, color .3s, box-shadow .3s; }
.sx-f:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,.32); }
.sx-f-l { max-width: 230px; overflow: hidden; text-overflow: ellipsis; }
.sx-f-ic { flex: none; width: 14px; height: 14px; opacity: .7; transition: transform .5s var(--n-ease); }
.sx-f[aria-expanded="true"] .sx-f-ic { transform: rotate(45deg); }
.sx-f.is-on { background: var(--n-fg); color: var(--n-bg); box-shadow: none; }
.sx-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.sx-sort { position: relative; display: inline-flex; align-items: center; }
.sx-sort select { -webkit-appearance: none; appearance: none; height: 42px; padding: 0 36px 0 14px; border: 0; border-radius: 4px; background: transparent; color: var(--n-fg); box-shadow: inset 0 0 0 1px var(--n-line); font: inherit; font-size: 14px; font-weight: 540; cursor: pointer; }
.sx-sort select:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,.32); }
.sx-sort select option { background: var(--n-bg-2); color: var(--n-fg); }
.sx-sort-ic { position: absolute; right: 13px; width: 14px; height: 14px; transform: rotate(90deg); pointer-events: none; opacity: .7; }
.sx-view { display: flex; padding: 3px; border-radius: 4px; background: rgba(255,255,255,.06); }
.sx-view button { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: 3px; font-size: 14px; font-weight: 540; color: var(--n-fg-2); transition: background .3s, color .3s; }
.sx-view button:hover { color: var(--n-fg); }
.sx-view [aria-pressed="true"], .sx-view [aria-pressed="true"]:hover { background: var(--n-fg); color: var(--n-bg); }
.sx-view .ic { width: 16px; height: 16px; }
.sx-alert { display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 15px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--n-line); font-size: 14px; font-weight: 540; color: var(--n-fg); white-space: nowrap; transition: background .3s, box-shadow .3s; }
.sx-alert:hover { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.32); }
.sx-alert .ic { width: 17px; height: 17px; }
.sx-fw { position: relative; flex: none; display: inline-flex; }
.sx-f.is-on { padding-right: 42px; }
.sx-f.is-on .sx-f-ic { display: none; }
.sx-fx { position: absolute; right: 5px; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; display: grid; place-items: center; color: var(--n-bg); transition: background .25s; }
.sx-fx:hover { background: rgba(10,10,11,.1); }
.sx-fx[hidden] { display: none; }
.sx-fx .ic { width: 14px; height: 14px; }
.sx-resetb { display: none; flex: none; align-items: center; height: 42px; padding: 0 10px; font-size: 13.5px; font-weight: 520; color: var(--n-fg-2); white-space: nowrap; text-decoration: underline; text-decoration-color: rgba(244,241,234,.3); text-underline-offset: 4px; transition: color .3s, text-decoration-color .3s; }
.sx-resetb:hover { color: var(--n-fg); text-decoration-color: var(--n-fg); }
.sx.has-crits .sx-resetb { display: inline-flex; }

/* ---------- les fenêtres de filtres : verre sombre ---------- */
.sx-sp { position: fixed; z-index: 58; left: 16px; top: 120px; width: 400px; max-width: calc(100vw - 32px); max-height: 70vh; display: flex; flex-direction: column; border-radius: 6px; background: rgba(18,18,20,.86); -webkit-backdrop-filter: blur(28px) saturate(1.4); backdrop-filter: blur(28px) saturate(1.4); box-shadow: inset 0 0 0 1px rgba(255,255,255,.13), 0 40px 90px -30px rgba(0,0,0,.92); color: var(--n-fg); opacity: 0; transform: translate3d(0, -8px, 0); transition: opacity .3s, transform .55s var(--n-ease); }
.sx-sp.on { opacity: 1; transform: none; }
.sx-sp[data-sp="budget"] { width: 460px; }
.sx-sp[data-sp="where"] { width: 440px; }
.sx-sp-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 14px 2px 22px; flex: none; }
.sx-sp-t { margin: 0; font-stretch: 114%; font-size: 19px; font-weight: 520; }
.sx-sp-x { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--n-fg-2); transition: background .3s, color .3s; }
.sx-sp-x:hover { background: rgba(255,255,255,.08); color: var(--n-fg); }
.sx-sp-x .ic { width: 17px; height: 17px; }
.sx-sp-in { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px 22px 18px; display: grid; gap: 12px; align-content: start; }
.sx-sp-f { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px 14px 22px; border-top: 1px solid var(--n-line-2); }
.sx-ok { height: 44px; padding: 0 18px; border-radius: 3px; background: var(--n-fg); color: var(--n-bg); font-size: 14px; font-weight: 560; transition: background .3s; }
.sx-ok:hover { background: #fff; }
.sx-sp-k { margin: 4px 0 0; font-size: 12.5px; font-weight: 560; color: var(--n-fg-3); }
.sx-sp-kv { display: flex; justify-content: space-between; gap: 12px; }
.sx-sp-kv output { color: var(--n-fg); font-variant-numeric: tabular-nums; }
.sx-tiles { display: grid; gap: 6px; }
.sx-tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sx-tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sx-tile { position: relative; display: block; min-width: 0; }
.sx-tile input { position: absolute; opacity: 0; pointer-events: none; }
.sx-tile span { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 12px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--n-line); font-size: 14px; font-weight: 520; line-height: 1.25; cursor: pointer; transition: background .3s, color .3s, box-shadow .3s; }
.sx-tile span:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.sx-tile--ic span { flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 14px; min-height: 92px; padding: 12px; }
.sx-tile .ic { width: 22px; height: 22px; color: var(--n-fg-2); }
.sx-tile input:checked + span { background: var(--n-fg); color: var(--n-bg); box-shadow: none; }
.sx-tile input:checked + span .ic { color: var(--n-bg); }
.sx-tile input:focus-visible + span { outline: 2px solid var(--n-fg); outline-offset: 2px; }
.sx-steps { display: flex; gap: 4px; }
.sx-steps button { flex: 1; min-width: 0; height: 46px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--n-line); font-size: 14px; font-weight: 560; color: var(--n-fg-2); transition: background .3s, color .3s; font-variant-numeric: tabular-nums; }
.sx-steps button:hover { color: var(--n-fg); }
.sx-steps button[aria-pressed="true"] { background: var(--n-fg); color: var(--n-bg); box-shadow: none; }
.sx-steps--s button { height: 40px; font-size: 13px; }
.sx-seg { display: flex; padding: 3px; border-radius: 4px; background: rgba(255,255,255,.06); }
.sx-seg button { flex: 1; height: 40px; border-radius: 3px; font-size: 14px; font-weight: 540; color: var(--n-fg-2); transition: background .3s, color .3s; }
.sx-seg button[aria-pressed="true"] { background: var(--n-fg); color: var(--n-bg); }
/* budget : l'histogramme sans aucun chiffre, les deux curseurs */
.sx-histo { display: flex; align-items: flex-end; gap: 2px; height: 76px; margin-top: 12px; }
.sx-histo i { flex: 1; height: var(--h); min-height: 2px; border-radius: 1px 1px 0 0; background: rgba(255,255,255,.14); transition: height .55s var(--n-ease), background .3s; }
.sx-histo i.on { background: var(--n-fg); }
.sx-dual { position: relative; height: 30px; margin-top: -15px; --a: 0%; --b: 100%; }
.sx-dual::before, .sx-dual::after { content: ""; position: absolute; top: 14px; height: 2px; }
.sx-dual::before { left: 0; right: 0; background: rgba(255,255,255,.14); }
.sx-dual::after { left: var(--a); right: calc(100% - var(--b)); background: var(--n-fg); }
.sx-dual input, .sx-one { -webkit-appearance: none; appearance: none; width: 100%; margin: 0; background: transparent; }
.sx-dual input { position: absolute; inset: 0; z-index: 1; height: 30px; pointer-events: none; }
.sx-one { height: 30px; --p: 0%; }
.sx-dual input::-webkit-slider-runnable-track { height: 30px; background: transparent; }
.sx-one::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--n-fg) var(--p), rgba(255,255,255,.14) var(--p)); }
.sx-one::-moz-range-track { height: 2px; background: rgba(255,255,255,.14); }
.sx-one::-moz-range-progress { height: 2px; background: var(--n-fg); }
.sx-dual input::-webkit-slider-thumb, .sx-one::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 26px; height: 26px; border-radius: 50%; background: var(--n-fg); border: 0; box-shadow: 0 0 0 6px rgba(244,241,234,.12), 0 4px 14px rgba(0,0,0,.5); cursor: grab; }
.sx-dual input::-webkit-slider-thumb { margin-top: 2px; }
.sx-one::-webkit-slider-thumb { margin-top: -12px; }
.sx-dual input::-moz-range-thumb, .sx-one::-moz-range-thumb { pointer-events: auto; width: 26px; height: 26px; border-radius: 50%; background: var(--n-fg); border: 0; box-shadow: 0 0 0 6px rgba(244,241,234,.12), 0 4px 14px rgba(0,0,0,.5); cursor: grab; }
.sx-dual input:focus-visible::-webkit-slider-thumb, .sx-one:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--n-bg), 0 0 0 5px var(--n-fg); }
.sx-vals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sx-val { display: grid; gap: 5px; font-size: 12.5px; font-weight: 520; color: var(--n-fg-3); }
.sx-val input, .sx-rate-in input { width: 100%; height: 46px; padding: 0 12px; border: 0; border-radius: 3px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--n-line); color: var(--n-fg); font: inherit; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; outline: none; transition: box-shadow .3s; }
.sx-val input:focus, .sx-rate-in input:focus { box-shadow: inset 0 0 0 1px var(--n-fg); }
.sx-val input::placeholder { color: var(--n-fg-3); }
.sx-hyp { display: grid; gap: 12px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--n-line-2); }
.sx-hyp-g { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.sx-hyp-g > div, .sx-rate { display: grid; gap: 6px; align-content: start; font-size: 12.5px; font-weight: 520; color: var(--n-fg-3); }
.sx-rate-in { display: flex; align-items: center; gap: 8px; color: var(--n-fg-2); }
.sx-rate-in input { width: 92px; height: 40px; }
.sx-eq { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--n-fg); }
.sx-note { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--n-fg-3); }
.sx-dpe { display: flex; gap: 4px; }
.sx-dpe button { flex: 1; height: 46px; border-radius: 3px; background: var(--c); color: rgba(10,10,11,.86); font-weight: 700; font-size: 15px; opacity: .26; transition: opacity .3s, transform .4s var(--n-ease); }
.sx-dpe button:hover { opacity: .6; }
.sx-dpe button.on { opacity: 1; }
.sx-dpe button[aria-pressed="true"] { transform: translateY(-3px); }
.sx-radius { display: grid; gap: 8px; padding-bottom: 14px; margin-bottom: 2px; border-bottom: 1px solid var(--n-line-2); }
.sx-radius .sx-sp-k { color: var(--n-fg); font-size: 14px; }
.sx-town-go { justify-self: start; margin-top: 6px; }
.sx-veil { display: none; }
html.sx-lock, html.sx-lock body { overflow: hidden; }

/* ---------- résultats ---------- */
.sx-body { padding: clamp(30px, 3.4vw, 56px) var(--gut) clamp(100px, 10vw, 160px); }
.sx-list { min-width: 0; }
.sx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(44px, 4.4vw, 76px) clamp(16px, 1.8vw, 28px); }
.sx-more { display: flex; justify-content: center; margin-top: clamp(50px, 5vw, 80px); }
.sx-more .n-btn { height: 54px; }
.sx-none { display: grid; gap: 22px; justify-items: start; padding: clamp(20px, 4vw, 60px) 0 0; }
.sx-none-t { margin: 0; font-size: clamp(36px, 4.8vw, 82px); max-width: 13em; text-wrap: balance; }
.sx-none-p { margin: 0; max-width: 38em; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.55; color: var(--n-fg-2); }
.sx-none-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.sx-none-rx { display: contents; }
.sx-none-acts .n-btn { height: 48px; }
.sx-relax { height: 48px; padding: 0 18px; font-size: 14.5px; }
.sx-near { width: 100%; display: grid; gap: 24px; margin-top: clamp(40px, 5vw, 70px); padding-top: clamp(30px, 3vw, 44px); border-top: 1px solid var(--n-line-2); }

/* ---------- la carte (à droite sur ordinateur, plein écran sur téléphone) ---------- */
.sx-map { display: none; }
.sx.is-map .sx-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(20px, 2vw, 32px); align-items: start; }
.sx.is-map .sx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(14px, 1.4vw, 22px); }
.sx.is-map .sx-map { display: block; position: sticky; top: calc(var(--hd) + var(--bar-h, 68px) + 16px); height: calc(100vh - var(--hd) - var(--bar-h, 68px) - 32px); min-height: 420px; overflow: hidden; border-radius: 4px; background: #0b0b0c; box-shadow: inset 0 0 0 1px var(--n-line-2); }
.sx-mapbox { position: absolute; inset: 0; width: 100%; height: 100%; }
.sx-area { position: absolute; left: 12px; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px 0 12px; border-radius: 4px; background: rgba(16,16,18,.82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px var(--n-line); font-size: 13.5px; font-weight: 520; color: var(--n-fg); cursor: pointer; }
.sx-area input { width: 16px; height: 16px; accent-color: var(--n-fg); }
.sx-pm { padding: 8px 10px 7px; border-radius: 3px; background: rgba(16,16,18,.9); color: var(--n-fg); font: 600 12.5px/1 var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 10px 24px -8px rgba(0,0,0,.85); transition: background .25s, color .25s, transform .4s var(--n-ease); }
.sx-pm.is-rent { color: var(--n-fg-2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), inset 0 -2px 0 rgba(244,241,234,.5), 0 10px 24px -8px rgba(0,0,0,.85); }
.sx-pm:hover, .sx-pm.on { background: var(--n-fg); color: var(--n-bg); transform: scale(1.1); z-index: 3; }
.sx-pc { display: inline-flex; align-items: baseline; gap: 5px; padding: 9px 12px 8px; border-radius: 3px; background: var(--n-fg); color: var(--n-bg); font: 500 12px/1 var(--sans); white-space: nowrap; cursor: pointer; box-shadow: 0 0 0 5px rgba(244,241,234,.14), 0 12px 26px -8px rgba(0,0,0,.85); transition: transform .4s var(--n-ease), box-shadow .4s; }
.sx-pc b { font-weight: 660; font-size: 13px; font-variant-numeric: tabular-nums; }
.sx-pc:hover, .sx-pc.on { transform: scale(1.08); box-shadow: 0 0 0 8px rgba(244,241,234,.18), 0 12px 26px -8px rgba(0,0,0,.85); }
.sx-pop .maplibregl-popup-content { padding: 0; overflow: hidden; border-radius: 4px; background: var(--n-bg-2); box-shadow: 0 30px 70px -20px rgba(0,0,0,.9), 0 0 0 1px var(--n-line); }
.sx-pop.maplibregl-popup-anchor-top .maplibregl-popup-tip, .sx-pop.maplibregl-popup-anchor-top-left .maplibregl-popup-tip, .sx-pop.maplibregl-popup-anchor-top-right .maplibregl-popup-tip { border-bottom-color: var(--n-bg-2); }
.sx-pop.maplibregl-popup-anchor-bottom .maplibregl-popup-tip, .sx-pop.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip, .sx-pop.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip { border-top-color: var(--n-bg-2); }
.sx-pop.maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: var(--n-bg-2); }
.sx-pop.maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: var(--n-bg-2); }
.sx-mp { display: block; width: 260px; color: var(--n-fg); }
.sx-mp-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--n-bg-3); }
.sx-mp-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--n-ease); }
.sx-mp:hover .sx-mp-img img { transform: scale(1.05); }
.sx-mp-t { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px 2px; font: 500 15px/1.3 var(--sans); }
.sx-mp-t b { font-stretch: 112%; font-weight: 540; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-mp-t span { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sx-mp small { display: block; padding: 0 14px 14px; font: 400 12.5px/1.4 var(--sans); color: var(--n-fg-3); }
.sx-map .maplibregl-ctrl-group { background: rgba(16,16,18,.88); box-shadow: 0 0 0 1px var(--n-line); border-radius: 4px; }
.sx-map .maplibregl-ctrl-group button + button { border-top-color: var(--n-line-2); }
.sx-map .maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(.9); }
.sx-map .maplibregl-ctrl-attrib, .sx-map .maplibregl-ctrl-attrib.maplibregl-compact { background: rgba(10,10,11,.72) !important; color: var(--n-fg-3); }
.sx-map .maplibregl-ctrl-attrib a { color: var(--n-fg-2); }
.sx-map .maplibregl-ctrl-attrib-button { filter: invert(.9); }

/* ---------- bouton flottant (téléphone) et haut de page ---------- */
.sx-fab { display: none; }
.sx-top { position: fixed; right: var(--gut); bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 45; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: rgba(16,16,18,.82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--n-fg); box-shadow: inset 0 0 0 1px var(--n-line), 0 14px 30px -10px rgba(0,0,0,.8); opacity: 0; transform: translate3d(0, 14px, 0); pointer-events: none; transition: opacity .4s, transform .6s var(--n-ease), background .3s; }
.sx-top.on { opacity: 1; transform: none; pointer-events: auto; }
.sx-top:hover { background: var(--n-fg); color: var(--n-bg); }
.sx-top .ic { width: 19px; height: 19px; transform: rotate(-90deg); }

/* ---------- l'alerte ---------- */
.sx-dlg { width: min(620px, calc(100vw - 24px)); max-height: calc(100svh - 24px); border: 0; border-radius: 6px; padding: clamp(26px, 4vw, 44px); background: var(--n-bg-2); color: var(--n-fg); box-shadow: 0 50px 120px -30px rgba(0,0,0,.92), 0 0 0 1px var(--n-line); }
.sx-dlg::backdrop { background: rgba(0,0,0,.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sx-dlg[open] { animation: sx-dlg .7s var(--n-ease); }
@keyframes sx-dlg { from { opacity: 0; transform: translate3d(0, 20px, 0); } }
.sx-dlg-x { position: absolute; right: 14px; top: 14px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--n-fg); box-shadow: inset 0 0 0 1px var(--n-line); transition: background .3s; }
.sx-dlg-x:hover { background: rgba(255,255,255,.08); }
.sx-dlg-x .ic { width: 17px; height: 17px; }
.sx-dlg-t { margin: 0 0 12px; padding-right: 50px; font-size: clamp(28px, 3vw, 40px); }
.sx-dlg-s { margin: 0 0 26px; color: var(--n-fg-2); font-size: 15.5px; line-height: 1.55; }
.sx-dlg .fm .n-btn { justify-self: start; }

/* ---------- grands écrans et tablettes ---------- */
@media (min-width: 1680px) { .sx-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .sx.is-map .sx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1280px) { .sx-alert span { display: none; } .sx-alert { width: 42px; padding: 0; justify-content: center; } }
@media (max-width: 1100px) {
  .sx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx.is-map .sx-grid { grid-template-columns: 1fr; }
  .sx-view span { display: none; }
}

/* ---------- téléphones ---------- */
@media (max-width: 899px) {
  .sx-hero { min-height: max(600px, 86svh); }
  .sx-hero .n-hero-in { padding-bottom: 28px; gap: 14px; }
  .sx-h1 { font-size: clamp(42px, 12vw, 70px); font-stretch: 114%; }
  .sx-kick { font-size: 13px; }
  .sx-dock { flex-wrap: wrap; gap: 6px; padding: 6px; }
  .sx-tabs { width: 100%; }
  .sx-tab { flex: 1; height: 42px; padding: 0 6px; font-size: 14.5px; }
  .sx-tab-ink { height: 42px; }
  .sx-field { flex-basis: 100%; height: 52px; padding-left: 10px; }
  .sx-field input, .sx-ph { font-size: 16px; }
  .sx-ph { left: 40px; right: 66px; }
  .sx-go { width: 48px; height: 48px; }
  .sx-sug { max-height: min(300px, 40svh); }
  .sx-towns { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(var(--gut) * -1); padding-right: var(--gut); }
  .sx-towns::-webkit-scrollbar { display: none; }
  .sx-towns > * { flex: none; }

  .sx-bar-in { gap: 6px; padding: 10px var(--gut); overflow-x: auto; scrollbar-width: none; }
  .sx-bar-in::-webkit-scrollbar { display: none; }
  .sx-mini, .sx-bar.is-stuck .sx-mini { width: 42px; margin-right: 0; opacity: 1; }
  .sx-filters { flex: none; overflow: visible; }
  .sx-f { height: 40px; padding: 0 11px 0 13px; font-size: 13.5px; }
  .sx-f-l { max-width: 170px; }
  .sx-tools { gap: 6px; }
  .sx-sort select { height: 40px; font-size: 13.5px; }
  .sx-view { display: none; }
  .sx-alert { height: 40px; width: 40px; }
  .sx-resetb { height: 40px; }
  .sx.has-crit .sx-resetb { display: inline-flex; }
  .sx-sug-t { flex-direction: column; gap: 1px; }
  .sx-sug small { margin-left: 0; font-size: 12.5px; }

  .sx-sp { left: 0 !important; right: 0; top: auto !important; bottom: 0; width: auto !important; max-width: none; max-height: 86svh !important; z-index: 96; border-radius: 8px 8px 0 0; background: rgba(18,18,20,.97); opacity: 1; transform: translate3d(0, 104%, 0); transition: transform .55s var(--n-ease); padding-bottom: env(safe-area-inset-bottom); }
  .sx-sp.on { transform: none; }
  .sx-sp::before { content: ""; position: absolute; left: 50%; top: 8px; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: rgba(255,255,255,.2); }
  .sx-sp-h { padding-top: 22px; }
  .sx-veil { display: block; position: fixed; inset: 0; z-index: 95; background: rgba(0,0,0,.58); opacity: 0; transition: opacity .35s; }
  .sx-veil.on { opacity: 1; }
  .sx-veil[hidden] { display: none; }
  .sx-tiles--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-tile--ic span { min-height: 80px; }
  .sx-hyp-g { grid-template-columns: 1fr; }

  .sx-body { padding-top: 28px; }
  .sx.is-map .sx-body { display: block; padding: 0; }
  .sx.is-map .sx-list { display: none; }
  .sx.is-map .sx-map { position: relative; top: 0; height: calc(100svh - var(--hd) - var(--bar-h, 64px)); min-height: 380px; border-radius: 0; box-shadow: none; }
  .sx-area { left: 10px; top: 10px; height: 38px; font-size: 13px; }
  .sx-fab { display: inline-flex; position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 46; height: 48px; padding: 0 20px; border-radius: 4px; background: var(--n-fg); color: var(--n-bg); font-size: 14.5px; font-weight: 600; box-shadow: 0 16px 34px -12px rgba(0,0,0,.85); transform: translate3d(-50%, 20px, 0); opacity: 0; pointer-events: none; transition: opacity .4s, transform .6s var(--n-ease); }
  .sx.is-past .sx-fab, .sx.is-map .sx-fab { opacity: 1; transform: translate3d(-50%, 0, 0); pointer-events: auto; }
  .sx-fab span { display: inline-flex; align-items: center; gap: 9px; }
  .sx-fab .ic { width: 17px; height: 17px; }
  .sx-top { width: 46px; height: 46px; bottom: calc(19px + env(safe-area-inset-bottom)); }
  .sx.is-map .sx-top { display: none; }
}
@media (max-width: 699px) {
  .sx-grid { grid-template-columns: 1fr; gap: 40px; }
}
