/* V123 — page Recherche : filtres rapides sous la barre, en-tête compact, Mot-clé retiré (ne s'applique qu'à la page Recherche) */
header .k171-chips{display:none}
html.k171-on body:not(#_x):not(#_y) header{height:calc(80px + 66px)!important}
html.k171-on body:not(#_x):not(#_y) header .k171-chips{display:block;position:fixed;left:0;right:0;top:80px;z-index:29;background:var(--a-card,#fff);border-bottom:1px solid rgba(128,128,128,.22);padding:10px 24px 10px;box-sizing:border-box}
html.k171-on header .k171-chips .k107-bar{margin:0 auto;max-width:1280px}
html.k171-on header.k96-open .k171-chips{display:none}
html.k171-on #view-recherche .filters{display:none!important}

/* Cartes d'annonce : prix, puis chambres · surface sur une ligne, puis profil ; « Disponible » retiré (la pastille « À louer » le dit déjà) */
html body:not(#_x):not(#_y):not(#_z):not(#_w):not(#_v) main #view-recherche .card[data-lid] .cb>.ct{order:1}
html body:not(#_x):not(#_y):not(#_z):not(#_w):not(#_v) main #view-recherche .card[data-lid] .cb>.loc{order:2}
html body:not(#_x):not(#_y):not(#_z):not(#_w):not(#_v) main #view-recherche .card[data-lid] .cb>.bottom{order:3}
html body:not(#_x):not(#_y):not(#_z):not(#_w):not(#_v) main #view-recherche .card[data-lid] .cb>.k171-spec{order:4}
html body:not(#_x):not(#_y):not(#_z):not(#_w):not(#_v) main #view-recherche .card[data-lid] .cb>.k100-t4,
html body:not(#_x):not(#_y):not(#_z):not(#_w):not(#_v) main #view-recherche .card[data-lid] .cb>.idn{order:5}
html body:not(#_x):not(#_y):not(#_z):not(#_w):not(#_v) main #view-recherche .card[data-lid] .cb>.badges{order:6;margin-top:4px!important}
html body:not(#_x):not(#_y):not(#_z):not(#_w):not(#_v) main #view-recherche .card[data-lid] .cb>.facts.k171-fait{display:none!important}
html body:not(#_x):not(#_y):not(#_z):not(#_w):not(#_v) main #view-recherche .card[data-lid] .cb>.badges>.badge.available,
html body:not(#_x):not(#_y):not(#_z):not(#_w):not(#_v) main #view-recherche .card[data-lid] .cb>.badges>.badge.b-ch.k171-fait{display:none!important}
html body:not(#_x):not(#_y):not(#_z):not(#_w):not(#_v) main #view-recherche .card[data-lid] .cb>.badges:not(:has(>.badge:not(.available):not(.b-who):not(.k171-fait))){display:none!important}
.k171-spec{display:flex;align-items:center;flex-wrap:wrap;gap:4px 22px;margin:3px 0 0;font-size:13.5px;line-height:18px;color:#4a5a66}
.k171-spec span{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.k171-spec svg{width:15px;height:15px;flex:none;opacity:.7}
html[data-theme="dark"] .k171-spec{color:#c3ced6}
/* hauteur de carte adaptée au contenu (plus de vide sous les textes) */
@media(min-width:761px){html body:not(#_x):not(#_y):not(#_z):not(#_w):not(#_v) main #view-recherche .card[data-lid]{height:auto!important;min-height:0!important;max-height:none!important}}

/* photos qui glissent (voir js/163) */
#view-recherche .card[data-lid] .photo{overflow:hidden}
.k171-track{position:absolute;inset:0;display:flex;transition:transform .38s cubic-bezier(.4,0,.2,1);will-change:transform}
.k171-track img{flex:0 0 100%;width:100%;height:100%;object-fit:cover;display:block;-webkit-user-drag:none}
@media (prefers-reduced-motion:reduce){.k171-track{transition:none}}

/* carte : suit l'écran en hauteur, sous l'en-tête compact + filtres */
@media(min-width:1024px){main.rc-split #view-recherche .rc-map{top:calc(80px + 66px + 14px)!important;height:calc(100vh - 80px - 66px - 28px)!important}}

/* bandeau budget (histogramme) — couleurs Korda */
#results>.k171-hist{grid-column:1/-1;box-sizing:border-box;width:100%;max-width:100%;margin:8px 0;padding:26px 30px 22px;border-radius:20px;background:rgba(128,128,128,.08)}
.k171-hist[hidden]{display:none!important}
.k171-hist h3{margin:0;font-size:19px;font-weight:700;color:var(--a-ink,#142f43)}
.k171-hist p{margin:3px 0 18px;font-size:14px;color:#6a6a6a}
.k171-bars{display:flex;align-items:flex-end;gap:3px;height:96px}
.k171-bars i{flex:1;background:#E0562D;opacity:.28;border-radius:3px 3px 0 0;transition:opacity .15s}
.k171-bars i.on{opacity:1}
.k171-rg{position:relative;height:30px;margin-top:2px}
.k171-tk{position:absolute;left:0;right:0;top:13px;height:3px;border-radius:2px;background:rgba(128,128,128,.35)}
.k171-fl{position:absolute;top:0;bottom:0;background:#E0562D;border-radius:2px}
.k171-rg input{position:absolute;left:0;top:0;width:100%;height:30px;margin:0;background:none;pointer-events:none;-webkit-appearance:none;appearance:none}
.k171-rg input::-webkit-slider-runnable-track{background:none;height:30px}
.k171-rg input::-moz-range-track{background:none}
.k171-rg input::-webkit-slider-thumb{-webkit-appearance:none;pointer-events:auto;width:26px;height:26px;margin-top:2px;border-radius:50%;background:#fff;border:2px solid #142f43;box-shadow:0 1px 4px rgba(0,0,0,.25);cursor:grab}
.k171-rg input::-moz-range-thumb{pointer-events:auto;width:22px;height:22px;border-radius:50%;background:#fff;border:2px solid #142f43;box-shadow:0 1px 4px rgba(0,0,0,.25);cursor:grab}
.k171-rg input:focus-visible::-webkit-slider-thumb{outline:3px solid #E0562D;outline-offset:2px}
.k171-vl{display:flex;justify-content:space-between;margin-top:8px}
.k171-vl b{font-size:14px;font-weight:600;border:1px solid rgba(128,128,128,.4);border-radius:12px;padding:6px 12px;background:var(--a-card,#fff);color:var(--a-ink,#142f43)}
.k171-ft{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:16px;flex-wrap:wrap}
.k171-n{font-size:14px;color:#6a6a6a}
.k171-ok{border:0;border-radius:999px;background:#c4501f;color:#fff;font:600 14px/1 inherit;font-family:inherit;padding:12px 20px;cursor:pointer}
.k171-ok:hover{background:#a8420f}.k171-ok:disabled{opacity:.5;cursor:default}
.k171-ok:focus-visible{outline:3px solid #142f43;outline-offset:2px}
html[data-theme="dark"] .k171-vl b{background:#1c2a35}
html body #results>.k171-hist .k171-rg input[type=range]{border:0!important;background:transparent!important;padding:0!important;box-shadow:none!important;outline:0;height:30px!important;min-height:0!important;border-radius:0!important;width:100%!important}
html body #results>.k171-hist .k171-rg input[type=range]:focus{box-shadow:none!important;border:0!important}

/* Retraits (bureau et mobile) : « Mot-clé » doublonne la barre de recherche ; la note « Carte en cours d'intégration » n'a plus de raison d'être (la carte affiche déjà « Positions approximatives ») */
#view-recherche .filters{display:none!important}
#view-recherche>.panel.small:has(+.rc-bar){display:none!important}
html body:not(#_x):not(#_y):not(#_z):not(#_w) #view-recherche .filters{display:none!important}
html body:not(#_x):not(#_y):not(#_z):not(#_w) #view-recherche>.panel.small:has(+.rc-bar){display:none!important}
html body #view-recherche .k171-note{display:none!important}

/* Téléphone, page Recherche : les 7 rubriques de l'en-tête tiennent toutes sur la largeur (réduites), sans défilement */
@media (max-width:760px){
 html.k171-m body:not(#_x):not(#_y):not(#_z) header #k96-tabs{display:flex!important;gap:0!important;justify-content:space-between!important;overflow:visible!important;padding:0 6px!important;width:calc(100% + 32px)!important;max-width:none!important;box-sizing:border-box!important}
 html.k171-m body:not(#_x):not(#_y):not(#_z) header #k96-tabs button{flex:1 1 0!important;min-width:0!important;width:auto!important;padding:0 1px!important}
 html.k171-m body:not(#_x):not(#_y):not(#_z) header #k96-tabs button svg{width:30px!important;height:30px!important}
 html.k171-m body:not(#_x):not(#_y):not(#_z) header #k96-tabs button span{font-size:9px!important;letter-spacing:-.02em;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}

/* V124 — histogramme : barres fines, pas de contour noir de sélection */
.k171-bars{gap:3px!important}
html body #results>.k171-hist .k171-rg input[type=range]:focus,html body #results>.k171-hist .k171-rg input[type=range]:focus-visible{outline:0!important;box-shadow:none!important}
/* V124 — statuts : plus de pastille « Indisponible » sous la carte ; « Déjà loué / Déjà vendu » dans la pastille de la photo, point gris éteint */
html body main #view-recherche .card[data-lid] .cb>.badges>.badge.unavailable{display:none!important}
html body:not(#_x):not(#_y):not(#_z) .card[data-lid] .photo>.tag.k171-off::before{content:""!important;display:inline-block!important;position:static!important;flex:none!important;width:7px!important;height:7px!important;border-radius:50%!important;background:#9a9a9a!important;box-shadow:none!important;animation:none!important;margin-right:7px!important}
/* point vert qui pulse (même effet que la fiche), Recherche */
html body:not(#_x):not(#_y):not(#_z):not(#_w) #view-recherche .card[data-lid] .photo>.tag:not(.demo):not(.k171-off)::before{box-shadow:none!important;outline:0 solid rgba(31,157,107,.5);animation:k171ring 1.9s ease-out infinite!important}
@keyframes k171ring{0%{outline-width:0;outline-color:rgba(31,157,107,.55)}80%,100%{outline-width:7px;outline-color:rgba(31,157,107,0)}}
#view-recherche .card[data-lid] .photo>.tag{overflow:visible}
@media (prefers-reduced-motion:reduce){html body #view-recherche .card[data-lid] .photo>.tag::before{animation:none!important}}

/* V124 — onglets Louer / Acheter du bandeau budget */
.k171-tabs{display:inline-flex;gap:4px;margin:12px 0 2px;padding:4px;border-radius:999px;background:rgba(128,128,128,.16)}
html body .k171-tabs button{border:0;background:transparent;color:inherit;font:600 14px/1 inherit;font-family:inherit;padding:9px 18px;border-radius:999px;cursor:pointer;transition:background .15s}
html body .k171-tabs button[aria-selected="true"]{background:#142f43;color:#fff}
html body .k171-tabs button:focus-visible{outline:3px solid #E0562D;outline-offset:2px}

/* V125 : les cartes des autres pages restent masquées (une règle plus ancienne imposait display:flex et annulait le masquage de la pagination) */
html body:not(#_x):not(#_y):not(#_z):not(#_w):not(#_v) #results>.card[data-k159]{display:none!important}

/* V126 : « Déjà loué / Déjà vendu » affiché par le CSS (le texte de la pastille n'est plus réécrit par le script) */
html body:not(#_x):not(#_y):not(#_z):not(#_w) #view-recherche .card[data-lid] .photo>.tag.k171-off{font-size:0!important}
html body:not(#_x):not(#_y):not(#_z):not(#_w) #view-recherche .card[data-lid] .photo>.tag.k171-off::after{content:"Déjà loué"!important;display:inline-block!important;position:static!important;inset:auto!important;width:auto!important;height:auto!important;background:none!important;padding:0!important;margin:0!important;font-size:12px!important;font-weight:600!important;line-height:12px!important;color:inherit!important;-webkit-mask:none!important;mask:none!important;border:0!important;box-shadow:none!important}
html body:not(#_x):not(#_y):not(#_z):not(#_w) #view-recherche .card[data-lid] .photo>.tag.k171-off.k171-vente::after{content:"Déjà vendu"!important}
