/* ==========================================================================
   Page catégorie Immobilier — AnkibaMarket (22 novembre 2026, version « Domis »)
   Gabarit : search-immobilier.php · données : inc/realestate.php · préfixe .rei
   ========================================================================== */

.vistore-theme .rei {
  --rei-ink: var(--v3-ink, #0f1c17);
  --rei-ink2: var(--v3-ink-2, #3a4a43);
  --rei-muted: var(--v3-muted, #6b7a72);
  --rei-line: var(--v3-line, #e5ebe7);
  --rei-soft: var(--v3-soft, #f4f7f5);
  --rei-surface: var(--v3-surface, #fff);
  --rei-green: var(--v3-green, var(--vs-primary));
  --rei-deep: var(--v3-green-deep, var(--vs-deep));
  --rei-gold: var(--v3-gold, var(--vs-accent));
  --rei-red: var(--v3-red, 6px);
  --rei-sea: #c6ecff;
  --rei-r: 6px;
  --rei-serif: "Fraunces", Georgia, "Times New Roman", serif;
  color: var(--rei-ink);
  padding-bottom: 40px;
}
.vistore-theme .rei *, .vistore-theme .rei *::before, .vistore-theme .rei *::after { box-sizing: border-box; }
.vistore-theme .rei a { text-decoration: none; }
.vistore-theme .rei .rei-ico { width: 18px; height: 18px; flex: none; }
.vistore-theme .rei p { margin: 0; }
.vistore-theme .rei h1, .vistore-theme .rei h2, .vistore-theme .rei h3 { margin: 0; }

.vistore-theme .rei-crumbs { font-size: 13px; color: var(--rei-muted); padding: 16px 0 14px; }
.vistore-theme .rei-crumbs a { color: var(--rei-muted); }
.vistore-theme .rei-crumbs b { color: var(--rei-ink); font-weight: 600; }

/* --- Titres de section ---------------------------------------------------- */
.vistore-theme .rei-sec { margin-top: 36px; }
.vistore-theme .rei-sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.vistore-theme .rei-sec h2 { font-family: var(--rei-serif); font-weight: 700; font-size: 26px; letter-spacing: -.01em; color: var(--rei-ink); }
.vistore-theme .rei-sec__head a { font-weight: 600; color: var(--rei-green); font-size: 14px; white-space: nowrap; }

/* --- 4. Agences ----------------------------------------------------------- */
.vistore-theme .rei-agencies { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.vistore-theme .rei-ag { background: var(--rei-surface); border: 1px solid var(--rei-line); border-radius: var(--rei-r); padding: 18px; display: grid; gap: 12px; align-content: start; }
.vistore-theme .rei-ag__top { display: flex; gap: 12px; align-items: center; }
.vistore-theme .rei-ag__top img, .vistore-theme .rei-ag__top .vistore-avatar { width: 54px; height: 54px; border-radius: 6px; border: 1px solid var(--rei-line); object-fit: contain; background: #fff; flex: none; }
.vistore-theme .rei-ag__top strong { display: block; font-size: 15.5px; color: var(--rei-ink); }
.vistore-theme .rei-badge { display: inline-flex; align-items: center; gap: 5px; background: rgba(var(--vs-primary-rgb), .1); color: var(--rei-green); font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; margin-top: 3px; }
.vistore-theme .rei-badge .rei-ico { width: 14px; height: 14px; }
.vistore-theme .rei-ag ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; color: var(--rei-ink2); }
.vistore-theme .rei-ag li { display: flex; gap: 8px; align-items: center; }
.vistore-theme .rei-ag li .rei-ico { width: 16px; height: 16px; color: var(--rei-muted); }
.vistore-theme .rei-ag--cta { background: var(--rei-deep); border-color: var(--rei-deep); color: #fff; }
.vistore-theme .rei-ag--cta strong { font-family: var(--rei-serif); font-size: 21px; line-height: 1.2; color: #fff; }
.vistore-theme .rei-ag--cta p { color: #bcd6c8; font-size: 13.5px; line-height: 1.5; }

/* --- 5. Îles ---------------------------------------------------------------- */
.vistore-theme .rei-isles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.vistore-theme .rei-isle { position: relative; display: block; border-radius: var(--rei-r); overflow: hidden; aspect-ratio: 16 / 10; color: #fff; background: var(--rei-deep); }
.vistore-theme .rei-isle img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.vistore-theme .rei-isle:hover img { transform: scale(1.04); }
.vistore-theme .rei-isle::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(8, 30, 20, .82)); }
.vistore-theme .rei-isle > span { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; }
.vistore-theme .rei-isle strong { display: block; font-family: var(--rei-serif); font-size: 26px; color: #fff; }
.vistore-theme .rei-isle small { font-size: 13.5px; color: #e2eee7; }
.vistore-theme .rei-isle em { position: absolute; right: 16px; top: 14px; z-index: 1; font-style: normal; background: rgba(255, 255, 255, .95); color: var(--rei-ink); font-weight: 700; font-size: 13px; padding: 5px 10px; border-radius: 6px; }
.vistore-theme .rei .rei-credit { font-size: 11.5px; color: var(--rei-muted); margin-top: 8px; }

/* --- 6. Conseils -------------------------------------------------------------- */
.vistore-theme .rei-tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.vistore-theme .rei-tips article { background: var(--rei-surface); border: 1px solid var(--rei-line); border-radius: var(--rei-r); padding: 20px; display: grid; gap: 8px; align-content: start; }
.vistore-theme .rei-tips article > span { width: 40px; height: 40px; border-radius: 6px; display: grid; place-items: center; background: #fff6d1; color: #7a5a00; }
.vistore-theme .rei-tips strong { font-size: 16px; color: var(--rei-ink); }
.vistore-theme .rei-tips p { color: var(--rei-ink2); font-size: 14px; line-height: 1.55; }

.vistore-theme .rei-alertbox { margin-top: 30px; }
.vistore-theme .rei-mbar { display: none; }


/* ==========================================================================
   Version « Domis » (maquette de l'utilisateur, 22 nov. 2026) — préfixe .rd
   Fond crème, encre vert nuit, accent vert, titres Space Grotesk, texte Inter.
   ========================================================================== */
body:has(.rd) { background: #F6F4EF; }
.vistore-theme .rd {
  --rd-bg: #F6F4EF;
  --rd-ink: #15231F;
  --rd-muted: #56635E;
  --rd-line: #DDD8CC;
  --rd-chip: #F1EEE6;
  --rd-accent: var(--vs-primary-dark);
  --rd-soft: rgba(11, 107, 87, .12);
  --rd-gold: #F2B35E;
  --rd-sea: #C6ECFF;
  --rei-serif: "Space Grotesk", Inter, system-ui, sans-serif;
  --rei-ink: var(--rd-ink); --rei-ink2: #33423D; --rei-muted: var(--rd-muted); --rei-line: var(--rd-line);
  --rei-deep: var(--rd-ink); --rei-green: var(--rd-accent); --rei-surface: #fff; --rei-soft: var(--rd-chip);
  font-family: Inter, system-ui, sans-serif; color: var(--rd-ink); font-size: 15px; line-height: 1.45; padding-bottom: 56px;
}
.vistore-theme .rd .rei-ico { width: 18px; height: 18px; }
.vistore-theme .rd button { font: inherit; cursor: pointer; }

/* --- Boutons ---------------------------------------------------------------- */
.vistore-theme .rd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 6px; font-weight: 600; font-size: 14px; white-space: nowrap; border: 1px solid transparent; }
.vistore-theme .rd-btn .rei-ico { width: 17px; height: 17px; }
.vistore-theme .rd-btn--line { border-color: var(--rd-ink); color: var(--rd-ink); background: transparent; }
.vistore-theme .rd-btn--line:hover { background: var(--rd-ink); color: #fff; }
.vistore-theme .rd-btn--accent { background: var(--rd-accent); color: #fff; border: 0; }
.vistore-theme .rd-btn--accent:hover { filter: brightness(.94); color: #fff; }
.vistore-theme .rd-btn--gold { background: var(--rd-gold); color: var(--rd-ink); justify-self: start; }

/* --- Bloc de recherche ------------------------------------------------------- */
.vistore-theme .rd-search { background: #fff; border: 1px solid var(--rd-line); border-radius: 6px; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.vistore-theme .rd-search__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.vistore-theme .rd-seg { display: inline-flex; padding: 4px; gap: 4px; border: 1px solid var(--rd-line); border-radius: 6px; background: var(--rd-bg); }
.vistore-theme .rd-seg a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 24px; border-radius: 6px; font-weight: 600; color: var(--rd-ink); }
.vistore-theme .rd-seg a:hover { background: rgba(21, 35, 31, .06); }
.vistore-theme .rd-seg a.is-on { background: var(--rd-ink); color: #fff; }
.vistore-theme .rd-search__link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; text-decoration: underline !important; text-underline-offset: 3px; color: var(--rd-ink); }
.vistore-theme .rd-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; margin: 0; }
.vistore-theme .rd-field { flex: 1 1 160px; display: flex; flex-direction: column; justify-content: center; padding: 8px 16px; border: 1px solid var(--rd-line); border-radius: 6px; min-height: 64px; background: #fff; }
.vistore-theme .rd-field:focus-within { border-color: var(--rd-accent); box-shadow: 0 0 0 3px var(--rd-soft); }
.vistore-theme .rd-field--where { flex: 2 1 260px; flex-direction: row; align-items: center; gap: 12px; }
.vistore-theme .rd-field--where > div { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.vistore-theme .rd-field--where .rei-ico { width: 22px; height: 22px; color: var(--rd-muted); }
.vistore-theme .rd-field label { font-size: 12px; font-weight: 600; color: var(--rd-muted); margin: 0; }
.vistore-theme .rd .rd-field input, .vistore-theme .rd .rd-field select {
  border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0; margin: 0; height: 26px; min-height: 0;
  font: inherit; font-size: 16px; font-weight: 500; color: var(--rd-ink); width: 100%; outline: none;
}
.vistore-theme .rd .rd-field select { margin-left: -2px; cursor: pointer; }
.vistore-theme .rd-form__go { flex: 0 0 auto; min-height: 64px; padding: 0 28px; border: 0; border-radius: 6px; background: var(--rd-accent); color: #fff; font-weight: 600; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.vistore-theme .rd-form__go:hover { filter: brightness(.94); }
.vistore-theme .rd-form__go .rei-ico { width: 20px; height: 20px; }

/* --- Filtres rapides ------------------------------------------------------------ */
.vistore-theme .rd-quick { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vistore-theme .rd-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--rd-line); border-radius: 6px; background: #fff; color: var(--rd-ink); font-size: 14px; font-weight: 500; white-space: nowrap; }
.vistore-theme .rd-chip:hover { border-color: var(--rd-accent); }
.vistore-theme .rd-chip.is-on { background: var(--rd-soft); border-color: var(--rd-accent); font-weight: 600; }
.vistore-theme .rd-chip .rei-ico { width: 16px; height: 16px; }
.vistore-theme .rd-chip--more { border-style: dashed; border-color: var(--rd-muted); background: transparent; }
.vistore-theme .rd-chip--save { margin-left: auto; border-color: var(--rd-ink); background: transparent; font-weight: 600; }
.vistore-theme .rd-quick__sep { width: 1px; height: 28px; background: var(--rd-line); margin: 0 8px; }

.vistore-theme .rd-more { margin: 12px 0 0; background: #fff; border: 1px solid var(--rd-line); border-radius: 6px; padding: 20px; display: grid; gap: 16px; }
.vistore-theme .rd-more[hidden] { display: none; }
.vistore-theme .rd-more__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; }
.vistore-theme .rd-more__f { display: grid; gap: 6px; margin: 0; }
.vistore-theme .rd-more__f > span { font-size: 13px; font-weight: 600; color: var(--rd-muted); }
.vistore-theme .rd .rd-more input[type=number], .vistore-theme .rd .rd-more input[type=text], .vistore-theme .rd .rd-more select {
  width: 100%; min-height: 46px; border: 1px solid var(--rd-line); border-radius: 6px; padding: 0 12px; background: #fff; color: var(--rd-ink); font: inherit; font-size: 15px; margin: 0; box-shadow: none;
}
.vistore-theme .rd-more__check { display: flex; align-items: center; gap: 10px; min-height: 46px; font-size: 14.5px; cursor: pointer; }
.vistore-theme .rd .rd-more__check input[type=checkbox] {
  -webkit-appearance: none !important; appearance: none !important; flex: none; width: 22px !important; height: 22px !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important;
  border: 1.5px solid #B9B3A3 !important; border-radius: 6px !important; background: #fff !important; display: grid; place-items: center; cursor: pointer;
}
.vistore-theme .rd .rd-more__check input[type=checkbox]:checked { background: var(--rd-accent) !important; border-color: var(--rd-accent) !important; }
.vistore-theme .rd .rd-more__check input[type=checkbox]:checked::after { content: ""; width: 10px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.vistore-theme .rd .rd-more__check input[type=checkbox]:focus-visible { outline: 2px solid var(--rd-accent); outline-offset: 2px; }
.vistore-theme .rd-more__attrs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.vistore-theme .rd-more__attrs .rei-more__row { display: grid; gap: 6px; }
.vistore-theme .rd-more__attrs .rei-more__row > span { font-size: 13px; font-weight: 600; color: var(--rd-muted); }
.vistore-theme .rd-more__attrs .rei-two { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.vistore-theme .rd-more__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; border-top: 1px solid var(--rd-line); padding-top: 16px; }
.vistore-theme .rd-more__foot a { font-weight: 600; text-decoration: underline !important; text-underline-offset: 3px; color: var(--rd-ink); }

/* --- Résultats + carte ------------------------------------------------------------ */
.vistore-theme .rd-main { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.vistore-theme .rd-results { flex: 3 1 560px; min-width: 0; }
.vistore-theme .rd-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 16px; }
.vistore-theme .rd-head h1 { font-family: var(--rei-serif); font-size: 30px; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; color: var(--rd-ink); }
.vistore-theme .rd-head p { margin-top: 4px; color: var(--rd-muted); }
.vistore-theme .rd-head__tools { display: flex; align-items: center; gap: 12px; }
.vistore-theme .rd-sort { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--rd-muted); white-space: nowrap; }
.vistore-theme .rd .rd-sort select { min-height: 44px; padding: 0 12px; border: 1px solid var(--rd-line); border-radius: 6px; background: #fff; font: inherit; font-size: 14px; font-weight: 500; color: var(--rd-ink); }
.vistore-theme .rd-view { display: inline-flex; border: 1px solid var(--rd-line); border-radius: 6px; overflow: hidden; background: #fff; }
.vistore-theme .rd-view button { width: 44px; height: 44px; border: 0; background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--rd-ink); }
.vistore-theme .rd-view button + button { border-left: 1px solid var(--rd-line); }
.vistore-theme .rd-view button[aria-pressed="true"] { background: var(--rd-soft); }
.vistore-theme .rd-view .rei-ico { width: 20px; height: 20px; }
.vistore-theme .rd-active { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 16px; }
.vistore-theme .rd-active a { display: inline-flex; gap: 6px; align-items: center; background: var(--rd-chip); color: var(--rd-ink); border-radius: 6px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.vistore-theme .rd-active a i { font-style: normal; opacity: .6; }
.vistore-theme .rd-active .rd-active__clear { background: transparent; text-decoration: underline !important; text-underline-offset: 3px; }

/* Cartes d'annonce façon Laforêt — grille (par défaut) et liste */
.vistore-theme .rd-list { display: flex; flex-direction: column; gap: 18px; }
.vistore-theme .rd-list.is-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.vistore-theme .rd-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--rd-line); border-radius: 6px; overflow: hidden; box-shadow: 0 1px 4px rgba(21, 35, 31, .06); transition: box-shadow .18s ease, transform .18s ease; }
.vistore-theme .rd-card:hover, .vistore-theme .rd-card.is-hot { box-shadow: 0 12px 28px rgba(21, 35, 31, .14); transform: translateY(-2px); }
.vistore-theme .rd-card__media { position: relative; display: block; aspect-ratio: 16 / 11; background: var(--rd-chip); overflow: hidden; }
.vistore-theme .rd-card__media > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.vistore-theme .rd-card:hover .rd-card__media > img { transform: scale(1.04); }
.vistore-theme .rd-card__tags { position: absolute; left: 10px; top: 10px; right: 60px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.vistore-theme .rd-card__logo { position: relative; padding: 3px; border-radius: 6px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.vistore-theme .rd-card__logo img { height: 30px; width: auto; max-width: 96px; object-fit: contain; display: block; border-radius: 6px; }
.vistore-theme .rd-card__logo i { position: absolute; right: -7px; bottom: -7px; width: 20px; height: 20px; border-radius: 50%; background: var(--rd-accent); color: #fff; border: 2px solid #fff; display: grid; place-items: center; }
.vistore-theme .rd-card__logo i .rei-ico { width: 12px; height: 12px; }
.vistore-theme .rd-card__row { display: flex; flex-wrap: wrap; gap: 5px; }
.vistore-theme .rd-tag { padding: 4px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; line-height: 1.2; box-shadow: 0 2px 6px rgba(0, 0, 0, .16); }
.vistore-theme .rd-tag--new { background: var(--rd-accent); color: #fff; }
.vistore-theme .rd-tag--rent { background: #fff; color: var(--rd-ink); }
.vistore-theme .rd-tag--sale { background: #fff; color: #7A3604; }
.vistore-theme .rd-tag--hol { background: #1E4A78; color: #fff; }
.vistore-theme .rd-tag--prem { background: var(--rd-gold); color: var(--rd-ink); }
.vistore-theme .rd-card__count { position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: 6px; background: rgba(21, 35, 31, .72); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.vistore-theme .rd-card .vistore-favorite { position: absolute; top: 10px; right: 10px; margin: 0; z-index: 2; }
.vistore-theme .rd-card .vistore-favorite button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .95); display: grid; place-items: center; color: var(--rd-ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .16); }
.vistore-theme .rd-card .vistore-favorite.is-active button { color: #C62F3A; }
.vistore-theme .rd-card .vistore-favorite.is-active svg { fill: #C62F3A; }
.vistore-theme .rd-card .vistore-favorite svg { width: 19px; height: 19px; }
.vistore-theme .rd-card__body { flex: 1; min-width: 0; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 5px; }
.vistore-theme .rd-card__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.vistore-theme .rd-card__type { min-width: 0; font-family: var(--rei-serif); font-size: 20px; font-weight: 600; letter-spacing: -.01em; color: var(--rd-accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vistore-theme .rd-card__type:hover { text-decoration: underline; }
.vistore-theme .rd-card__price { flex: none; font-family: var(--rei-serif); font-size: 20px; font-weight: 700; letter-spacing: -.01em; color: var(--rd-accent); white-space: nowrap; }
.vistore-theme .rd-card__price small { margin-left: 2px; font-family: Inter, system-ui, sans-serif; font-size: 12.5px; font-weight: 600; color: var(--rd-muted); letter-spacing: 0; }
.vistore-theme .rd-card__price .is-ask { font-size: 14px; color: var(--rd-ink); }
.vistore-theme .rd-card__city { font-size: 13.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--rd-ink); }
.vistore-theme .rd-card__line { font-size: 14.5px; color: #33423D; }
.vistore-theme .rd-card__line.is-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vistore-theme .rd-card__extras { font-size: 14px; color: var(--rd-muted); }
.vistore-theme .rd-card__actions { margin-top: auto; padding-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vistore-theme .rd-cbtn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 10px; border-radius: 6px; font-size: 14px; font-weight: 600; white-space: nowrap; border: 1.5px solid var(--rd-accent); }
.vistore-theme .rd-cbtn .rei-ico { width: 17px; height: 17px; }
.vistore-theme .rd-cbtn--fill { background: var(--rd-accent); color: #fff; }
.vistore-theme .rd-cbtn--fill:hover { filter: brightness(.92); color: #fff; }
.vistore-theme .rd-cbtn--line { background: #fff; color: var(--rd-accent); }
.vistore-theme .rd-cbtn--line:hover { background: var(--rd-soft); }

/* Liste : la même carte à l'horizontale */
.vistore-theme .rd-list:not(.is-grid) .rd-card { flex-direction: row; }
.vistore-theme .rd-list:not(.is-grid) .rd-card__media { flex: 0 0 320px; aspect-ratio: auto; min-height: 220px; }
.vistore-theme .rd-list:not(.is-grid) .rd-card .vistore-favorite { right: auto; left: 272px; }
.vistore-theme .rd-list:not(.is-grid) .rd-card__body { padding: 18px 20px; gap: 7px; }
.vistore-theme .rd-list:not(.is-grid) .rd-card__type, .vistore-theme .rd-list:not(.is-grid) .rd-card__price { font-size: 23px; }
.vistore-theme .rd-list:not(.is-grid) .rd-card__actions { grid-template-columns: auto auto; justify-content: start; }
.vistore-theme .rd-list:not(.is-grid) .rd-cbtn { padding: 0 18px; }

/* Badge « Réservable » de l'extension de location : en bas à gauche de la photo */
.vistore-theme .rd .rd-list.is-grid .rd-card .obr-rental-badge-auto { left: 10px !important; right: auto !important; top: 0 !important; bottom: auto !important; margin: calc(68.75% - 38px) 0 0 !important; }
.vistore-theme .rd .rd-list:not(.is-grid) .rd-card .obr-rental-badge-auto { left: 10px !important; right: auto !important; top: auto !important; bottom: 10px !important; margin: 0 !important; }

.vistore-theme .rd-empty { background: #fff; border: 1px dashed #B9B3A3; border-radius: 6px; padding: 48px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.vistore-theme .rd-empty h2 { font-family: var(--rei-serif); font-size: 22px; font-weight: 600; }
.vistore-theme .rd-empty p { color: var(--rd-muted); max-width: 420px; }

/* Alerte e-mail (bloc sombre) */
.vistore-theme .rd-alert { margin-top: 24px; background: var(--rd-ink); color: #fff; border-radius: 6px; padding: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; scroll-margin-top: 90px; }
.vistore-theme .rd-alert__copy { flex: 1 1 260px; }
.vistore-theme .rd-alert h2 { margin: 0 0 6px; font-family: var(--rei-serif); font-size: 24px; font-weight: 600; letter-spacing: -.01em; color: #fff; }
.vistore-theme .rd-alert p { color: #D5DCD8; }
.vistore-theme .rd-alert__form { flex: 1 1 320px; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.vistore-theme .rd .rd-alert__form input[type=email] { flex: 1 1 200px; min-width: 0; min-height: 48px; padding: 0 16px; border: 0; border-radius: 6px; font: inherit; font-size: 16px; color: var(--rd-ink); background: #fff; margin: 0; }
.vistore-theme .rd-alert__form button { min-height: 48px; padding: 0 22px; border: 0; border-radius: 6px; background: var(--rd-gold); color: var(--rd-ink); font-weight: 600; }
.vistore-theme .rd-alert__form button:disabled { opacity: .6; }
.vistore-theme .rd .rd-alert__msg, .vistore-theme .rd .rd-alert .va__msg { flex-basis: 100%; font-size: 14px; color: #fff; }
.vistore-theme .rd .rd-alert .va__msg.is-error { color: #FFB4A8; }
.vistore-theme .rd .rd-alert .va__msg.is-ok, .vistore-theme .rd .rd-alert__msg.is-ok { color: #A8E6C9; }
.vistore-theme .rd .rd-alert a { color: #fff; text-decoration: underline !important; }

/* Carte des îles (collante) */
.vistore-theme .rd-map { flex: 1 1 400px; min-width: 0; position: sticky; top: 16px; border-radius: 6px; overflow: hidden; border: 1px solid var(--rd-line); background: var(--rd-sea); display: flex; flex-direction: column; }
.vistore-theme .rd-map__bar { display: flex; flex-wrap: wrap; gap: 4px; margin: 12px; padding: 3px; align-self: flex-start; border-radius: 6px; background: #fff; box-shadow: 0 1px 3px rgba(21, 35, 31, .2); }
.vistore-theme .rd-map__bar a { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--rd-ink); }
.vistore-theme .rd-map__bar a small { font-size: 11.5px; font-weight: 700; color: var(--rd-muted); }
.vistore-theme .rd-map__bar a.is-on { background: var(--rd-ink); color: #fff; }
.vistore-theme .rd-map__bar a.is-on small { color: #C6D2CD; }
.vistore-theme .rd-map__box { position: relative; width: 100%; aspect-ratio: 827 / 586; overflow: hidden; }
.vistore-theme .rd-map__canvas { position: absolute; aspect-ratio: 827 / 586; }
.vistore-theme .rd-map__canvas > img { width: 100%; height: 100%; display: block; }
.vistore-theme .rd-pin { position: absolute; transform: translate(-50%, -100%); padding: 6px 0; z-index: 1; }
.vistore-theme .rd-pin span { display: inline-flex; align-items: center; min-height: 30px; padding: 0 11px; border-radius: 6px; border: 2px solid var(--rd-ink); background: #fff; color: var(--rd-ink); font-size: 12.5px; font-weight: 700; white-space: nowrap; box-shadow: 0 2px 4px rgba(21, 35, 31, .25); }
.vistore-theme .rd-pin:hover, .vistore-theme .rd-pin.is-hot { z-index: 3; }
.vistore-theme .rd-pin:hover span, .vistore-theme .rd-pin.is-hot span { background: var(--rd-accent); border-color: var(--rd-accent); color: #fff; }
.vistore-theme .rd-map__note { display: flex; align-items: center; gap: 6px; padding: 10px 16px 14px; font-size: 13px; font-weight: 600; color: #2F6B8A; }
.vistore-theme .rd-map__note .rei-ico { width: 15px; height: 15px; flex: none; }

/* Sections du bas, aux couleurs Domis */
.vistore-theme .rd .rei-sec { margin-top: 40px; }
.vistore-theme .rd .rei-sec h2 { font-family: var(--rei-serif); font-weight: 600; letter-spacing: -.02em; }
.vistore-theme .rd .rei-ag, .vistore-theme .rd .rei-tips article { border-color: var(--rd-line); border-radius: 6px; }
.vistore-theme .rd .rei-ag--cta { background: var(--rd-ink); border-color: var(--rd-ink); }
.vistore-theme .rd .rei-badge { background: var(--rd-soft); color: var(--rd-accent); }
.vistore-theme .rd .rei-pages { margin-top: 22px; }

/* --- Tablette / téléphone ------------------------------------------------------------ */
@media (max-width: 1100px) {
  .vistore-theme .rd-more__grid, .vistore-theme .rd-more__attrs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vistore-theme .rd-map { position: static; flex-basis: 100%; }
}
@media (max-width: 700px) {
  .vistore-theme .rd-search { padding: 14px; border-radius: 6px; }
  .vistore-theme .rd-seg { width: 100%; }
  .vistore-theme .rd-seg a { flex: 1; justify-content: center; }
  .vistore-theme .rd-field { flex-basis: calc(50% - 6px); }
  .vistore-theme .rd-field--where { flex-basis: 100%; }
  .vistore-theme .rd-form__go { flex-basis: 100%; min-height: 56px; }
  .vistore-theme .rd-quick { flex-wrap: nowrap; overflow-x: auto; margin-right: -14px; padding-right: 14px; scrollbar-width: none; }
  .vistore-theme .rd-quick::-webkit-scrollbar { display: none; }
  .vistore-theme .rd-chip--save { margin-left: 0; }
  .vistore-theme .rd-more__grid, .vistore-theme .rd-more__attrs { grid-template-columns: minmax(0, 1fr); }
  .vistore-theme .rd-head h1 { font-size: 25px; }
  .vistore-theme .rd-head__tools { width: 100%; justify-content: space-between; }
  .vistore-theme .rd-list.is-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .vistore-theme .rd-list:not(.is-grid) .rd-card__media { flex-basis: 40%; min-height: 0; }
  .vistore-theme .rd-list:not(.is-grid) .rd-card .vistore-favorite { left: auto; right: auto; left: calc(40% - 46px); }
  .vistore-theme .rd-list:not(.is-grid) .rd-card__body { padding: 10px 12px; gap: 3px; }
  .vistore-theme .rd-list:not(.is-grid) .rd-card__type, .vistore-theme .rd-list:not(.is-grid) .rd-card__price { font-size: 16px; }
  .vistore-theme .rd-list:not(.is-grid) .rd-card__top { flex-direction: column; gap: 0; }
  .vistore-theme .rd-list:not(.is-grid) .rd-card__city { font-size: 12px; }
  .vistore-theme .rd-list:not(.is-grid) .rd-card__line, .vistore-theme .rd-list:not(.is-grid) .rd-card__extras { font-size: 12.5px; }
  .vistore-theme .rd-list:not(.is-grid) .rd-card__extras, .vistore-theme .rd-list:not(.is-grid) .rd-card__logo, .vistore-theme .rd-list:not(.is-grid) .rd-card__row { display: none; }
  .vistore-theme .rd-list:not(.is-grid) .rd-card__actions { grid-template-columns: 1fr 1fr; }
  .vistore-theme .rd-list:not(.is-grid) .rd-cbtn { min-height: 36px; padding: 0 6px; font-size: 12.5px; }
  .vistore-theme .rd-list:not(.is-grid) .rd-cbtn .rei-ico { display: none; }
  .vistore-theme .rd .rei-isles, .vistore-theme .rd .rei-tips { grid-template-columns: minmax(0, 1fr); }
  .vistore-theme .rd .rei-sec__head { flex-wrap: wrap; align-items: baseline; }
  .vistore-theme .rd .rei-sec h2 { font-size: 22px; }
}

/* Mode sombre du site */
html.vistore-dark body:has(.rd) { background: #0b120f; }
html.vistore-dark .vistore-theme .rd { --rd-ink: #EEF4F0; --rd-muted: #A9B6AF; --rd-line: #2A3631; --rd-chip: #1C2622; --rd-bg: #121a16; }
html.vistore-dark .vistore-theme .rd-search, html.vistore-dark .vistore-theme .rd-card, html.vistore-dark .vistore-theme .rd-field, html.vistore-dark .vistore-theme .rd-chip, html.vistore-dark .vistore-theme .rd-more, html.vistore-dark .vistore-theme .rd-view, html.vistore-dark .vistore-theme .rd-view button { background: #111a16; }
html.vistore-dark .vistore-theme .rd-alert { background: #1C2622; }
html.vistore-dark .vistore-theme .rd-seg a.is-on, html.vistore-dark .vistore-theme .rd-map__bar a.is-on { background: #EEF4F0; color: #15231F; }

/* Mise à jour sans rechargement */
.vistore-theme .rd.is-loading .rd-main { opacity: .45; pointer-events: none; transition: opacity .15s ease; }
.vistore-theme .rd.is-loading::before { content: ""; position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 2000; background: linear-gradient(90deg, transparent, var(--rd-accent), transparent); background-size: 50% 100%; background-repeat: no-repeat; animation: rd-load 1s linear infinite; }
@keyframes rd-load { from { background-position: -50% 0; } to { background-position: 150% 0; } }
@media (prefers-reduced-motion: reduce) { .vistore-theme .rd.is-loading::before { animation: none; background: var(--rd-accent); opacity: .6; } }

/* Arrondis plus marqués (23 nov. 2026, « manque le radius ») */
.vistore-theme .rd .rd-card { border-radius: 6px; }
.vistore-theme .rd .rd-card__media { margin: 8px 8px 0; border-radius: 6px; isolation: isolate; }
.vistore-theme .rd .rd-card__media > img { border-radius: 6px; }
.vistore-theme .rd .rd-card__tags { left: 12px; top: 12px; }
.vistore-theme .rd .rd-card__count { right: 12px; bottom: 12px; border-radius: 6px; padding: 3px 10px; }
.vistore-theme .rd .rd-card .vistore-favorite { top: 18px; right: 18px; }
.vistore-theme .rd .rd-tag { border-radius: 6px; padding: 4px 10px; }
.vistore-theme .rd .rd-card__logo { border-radius: 6px; }
.vistore-theme .rd .rd-card__logo img { border-radius: 6px; }
.vistore-theme .rd .rd-cbtn { border-radius: 6px; }
.vistore-theme .rd .rd-card__body { padding: 14px 18px 18px; }
.vistore-theme .rd .rd-list:not(.is-grid) .rd-card__media { margin: 8px 0 8px 8px; }
.vistore-theme .rd .rd-list:not(.is-grid) .rd-card .vistore-favorite { top: 18px; left: 278px; right: auto; }
.vistore-theme .rd .rd-list.is-grid .rd-card .obr-rental-badge-auto { margin: calc((100% - 16px) * .6875 - 32px) 0 0 !important; left: 18px !important; }
.vistore-theme .rd .rd-list:not(.is-grid) .rd-card .obr-rental-badge-auto { left: 18px !important; bottom: 18px !important; }
@media (max-width: 700px) {
  .vistore-theme .rd .rd-list:not(.is-grid) .rd-card .vistore-favorite { left: calc(40% - 40px); }
}
.vistore-theme .rd .rd-card form.vistore-favorite button { width: 38px !important; height: 38px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: rgba(255, 255, 255, .95) !important; box-shadow: 0 2px 8px rgba(0, 0, 0, .18) !important; display: grid !important; place-items: center; color: var(--rd-ink) !important; }
.vistore-theme .rd .rd-card form.vistore-favorite.is-active button { color: #C62F3A !important; }
/* Marge blanche de 1 px autour de la photo (23 nov. 2026) */
.vistore-theme .rd .rd-card__media { margin: 1px 1px 0; border-radius: 6px 6px 6px 6px; }
.vistore-theme .rd .rd-card__media > img { border-radius: 6px 6px 6px 6px; }
.vistore-theme .rd .rd-card .vistore-favorite { top: 11px; right: 11px; }
.vistore-theme .rd .rd-list:not(.is-grid) .rd-card__media { margin: 1px 0 1px 1px; border-radius: 6px 6px 6px 6px; }
.vistore-theme .rd .rd-list:not(.is-grid) .rd-card__media > img { border-radius: 6px 6px 6px 6px; }
.vistore-theme .rd .rd-list:not(.is-grid) .rd-card .vistore-favorite { top: 11px; left: 273px; right: auto; }
.vistore-theme .rd .rd-list.is-grid .rd-card .obr-rental-badge-auto { margin: calc((100% - 2px) * .6875 - 38px) 0 0 !important; left: 12px !important; }
.vistore-theme .rd .rd-list:not(.is-grid) .rd-card .obr-rental-badge-auto { left: 12px !important; bottom: 12px !important; }
@media (max-width: 700px) {
  .vistore-theme .rd .rd-list:not(.is-grid) .rd-card .vistore-favorite { left: calc(40% - 47px); }
}
/* Icônes de la ligne « m² • pièces • chambres » (23 nov. 2026) */
.vistore-theme .rd .rd-card__line:not(.is-title) { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.vistore-theme .rd .rd-card__line span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.vistore-theme .rd .rd-card__line .rei-ico { width: 18px; height: 18px; color: var(--rd-accent); flex: none; }
@media (max-width: 700px) {
  .vistore-theme .rd .rd-list:not(.is-grid) .rd-card__line { gap: 2px 8px; }
  .vistore-theme .rd .rd-list:not(.is-grid) .rd-card__line .rei-ico { width: 14px; height: 14px; }
}
