   CERAMISPOT — PAGE RECHERCHE
   Ce template s'insère DANS le theme WordPress.
   Le header et footer sont gérés par le theme.
   Toutes les hauteurs sont relatives (pas fixed nav).
───────────────────────────────────────────── */
:root {
  --bg:       #faf7f4;
  --bg2:      #f3ede6;
  --bg3:      #e8ddd2;
  --bg4:      #d4c4b0;
  --white:    #ffffff;
  --terra:    #c45d3e;
  --terra-l:  #d97b5a;
  --terra-p:  #f5e3d8;
  --terra-bg: #fdf6f0;
  --brown:    #3b2314;
  --brown-m:  #7a4e2c;
  --stone:    #9a8070;
  --text:     #2d1a08;
  --text-m:   #5a3a20;
  --green:    #4a7a58;
  --r:        12px;
  --rs:       8px;
  --sh:       0 2px 16px rgba(59,35,20,.08);
  --shm:      0 10px 40px rgba(59,35,20,.16);
  /* Hauteurs des barres fixes dans la page recherche */
  --strip-h:  64px;
  --tabs-h:   48px;
  --chips-h:  48px;
  --total-fixed: calc(var(--strip-h) + var(--tabs-h) + var(--chips-h));
}

/* Reset partiel — ne pas toucher aux styles globaux du theme */
.csp-search-page * { box-sizing: border-box; }
.csp-search-page { font-family: 'DM Sans', sans-serif; }

/* ─── SEARCH STRIP (barre recap + modif) ─── */
.csp-strip {
  position: sticky;
  top: 0;
  z-index: 300;
  background: var(--white);
  border-bottom: 1px solid var(--bg3);
  height: var(--strip-h);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
  box-shadow: 0 1px 8px rgba(59,35,20,.06);
}
/* Barre de recherche style AirBnb : capsule avec séparateurs internes */
.csp-strip-fields {
  display: flex;
  align-items: stretch;
  flex: 1;
  max-width: 620px;
  background: var(--white);
  border: 1.5px solid var(--bg3);
  border-radius: 40px;
  overflow: hidden;
  cursor: pointer;
  transition: all .2s;
  box-shadow: var(--sh);
  height: 44px;
}
.csp-strip-fields:hover {
  border-color: var(--brown-m);
  box-shadow: 0 4px 20px rgba(59,35,20,.12);
}
.csp-strip-field {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  padding: 0 16px;
  min-width: 0;
  transition: background .15s;
}
.csp-strip-field:hover { background: var(--bg); }
.csp-strip-field-icon {
  width: 13px;
  height: 13px;
  color: var(--stone);
  flex-shrink: 0;
}
.csp-strip-field-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.csp-strip-field-val.placeholder {
  color: var(--stone);
  font-weight: 400;
}
.csp-strip-sep {
  width: 1px;
  background: var(--bg3);
  flex-shrink: 0;
  align-self: stretch;
  margin: 8px 0;
}
/* Bouton loupe terra dans la capsule */
.csp-strip-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--terra);
  margin: auto 6px auto 4px;
  flex-shrink: 0;
  transition: background .15s;
}
.csp-strip-search-btn:hover { background: var(--terra-l); }
.csp-strip-search-btn svg {
  width: 14px;
  height: 14px;
  color: white;
}
.csp-strip-count {
  font-size: 12px;
  color: var(--stone);
  white-space: nowrap;
  flex-shrink: 0;
}
.csp-strip-count strong { color: var(--brown); font-weight: 700; }
.csp-strip-views {
  display: flex;
  gap: 0;
  border: 1.5px solid var(--bg3);
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.csp-view-btn {
  padding: 6px 12px;
  background: var(--white);
  border: none;
  cursor: pointer;
  color: var(--stone);
  transition: all .15s;
  display: flex;
  align-items: center;
}
.csp-view-btn:not(:last-child) { border-right: 1px solid var(--bg3); }
.csp-view-btn:hover { background: var(--bg); color: var(--brown); }
.csp-view-btn.on { background: var(--brown); color: white; }
.csp-view-btn svg { width: 14px; height: 14px; }

/* ─── SEARCH MODAL (modification de recherche) ─── */
.csp-search-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(59,35,20,.5);
  backdrop-filter: blur(4px);
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}
.csp-search-modal.open { display: flex; }
.csp-modal-box {
  background: var(--white);
  border-radius: 20px;
  padding: 28px;
  width: 100%;
  max-width: 560px;
  box-shadow: var(--shm);
  animation: slideDown .2s ease;
}
@keyframes slideDown {
  from { transform: translateY(-16px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
.csp-modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--brown);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.csp-modal-close {
  width: 32px; height: 32px; border-radius: 50%;
  border: none; background: var(--bg);
  color: var(--stone); font-size: 16px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.csp-modal-close:hover { background: var(--terra-p); color: var(--terra); }
.csp-modal-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.csp-modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.csp-modal-field label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--stone);
}
.csp-modal-field input,
.csp-modal-field select {
  padding: 10px 14px;
  border: 1.5px solid var(--bg3);
  border-radius: var(--rs);
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color .15s;
}
.csp-modal-field input:focus,
.csp-modal-field select:focus { border-color: var(--terra); background: var(--white); }
.csp-modal-field.full { grid-column: 1 / -1; }
.csp-modal-btn {
  width: 100%;
  padding: 13px;
  border-radius: 40px;
  background: var(--terra);
  color: white;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.csp-modal-btn:hover { background: var(--terra-l); }
.csp-modal-btn svg { width: 16px; height: 16px; }

/* ─── CATEGORY TABS ─── */
.csp-tabs {
  position: sticky;
  top: var(--strip-h);
  z-index: 290;
  background: var(--white);
  border-bottom: 2px solid var(--bg3);
  height: var(--tabs-h);
  display: flex;
  align-items: stretch;
  padding: 0 20px;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.csp-tabs::-webkit-scrollbar { display: none; }
.csp-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--stone);
  cursor: pointer;
  border: none;
  background: none;
  font-family: 'DM Sans', sans-serif;
  transition: all .18s;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  flex-shrink: 0;
}
.csp-tab:hover { color: var(--brown); }
.csp-tab.active { color: var(--terra); border-bottom-color: var(--terra); }
.csp-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  background: var(--bg3);
  color: var(--stone);
  font-size: 10px;
  font-weight: 700;
  padding: 0 5px;
  transition: all .18s;
}
.csp-tab.active .csp-tab-count {
  background: var(--terra-p);
  color: var(--terra);
}

/* ─── CHIPS BAR ─── */
.csp-chips-bar {
  position: sticky;
  top: calc(var(--strip-h) + var(--tabs-h));
  z-index: 280;
  background: var(--bg2);
  border-bottom: 1px solid var(--bg3);
  height: var(--chips-h);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.csp-chips-bar::-webkit-scrollbar { display: none; }
.csp-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-m);
  border: 1.5px solid var(--bg3);
  background: var(--white);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all .15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.csp-chip:hover { border-color: var(--terra); color: var(--terra); }
.csp-chip.on {
  border-color: var(--terra);
  background: var(--terra-bg);
  color: var(--terra);
  font-weight: 600;
}
.csp-chips-sep {
  width: 1px;
  height: 24px;
  background: var(--bg3);
  flex-shrink: 0;
}
.csp-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brown-m);
  border: 1.5px solid var(--bg3);
  background: var(--white);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all .15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.csp-filter-btn:hover { border-color: var(--brown); color: var(--brown); }
.csp-filter-btn.on { background: var(--brown); color: white; border-color: var(--brown); }
.csp-filter-btn svg { width: 13px; height: 13px; }

/* ─── MAIN LAYOUT ─── */
.csp-body {
  display: flex;
  height: calc(100vh - var(--total-fixed) - 62px);
  /* En production : soustraire aussi la hauteur du header theme
     Ex : calc(100vh - var(--total-fixed) - 60px) selon le theme */
  min-height: 400px;
}

/* ─── SIDEBAR FILTRES AVANCÉS ─── */
.csp-sidebar {
  width: 0;
  overflow: hidden;
  background: var(--white);
  border-right: 1px solid var(--bg3);
  flex-shrink: 0;
  transition: width .25s ease;
  display: flex;
  flex-direction: column;
}
.csp-sidebar.open { width: 280px; }
.csp-sidebar-inner {
  width: 280px;
  overflow-y: auto;
  padding: 16px;
  flex: 1;
}
.csp-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bg3);
}
.csp-sidebar-title {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  color: var(--brown);
}
.csp-sidebar-close {
  width: 28px; height: 28px; border-radius: 50%;
  border: none; background: var(--bg);
  color: var(--stone); font-size: 14px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.csp-sidebar-close:hover { background: var(--terra-p); color: var(--terra); }
.csp-sf-section {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--bg3);
}
.csp-sf-section:last-child { border-bottom: none; }
.csp-sf-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--brown);
  margin-bottom: 8px;
}
.csp-sf-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.csp-sf-chip {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-m);
  border: 1.5px solid var(--bg3);
  background: var(--white);
  cursor: pointer;
  transition: all .15s;
}
.csp-sf-chip:hover { border-color: var(--terra); color: var(--terra); }
.csp-sf-chip.on { border-color: var(--terra); background: var(--terra-bg); color: var(--terra); font-weight: 600; }
.csp-sf-select {
  width: 100%;
  padding: 7px 10px;
  border: 1.5px solid var(--bg3);
  border-radius: var(--rs);
  font-size: 12px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  outline: none;
}
.csp-sf-select:focus { border-color: var(--terra); }
.csp-sf-range { display: flex; align-items: center; gap: 6px; }
.csp-sf-range input {
  flex: 1;
  padding: 7px 10px;
  border: 1.5px solid var(--bg3);
  border-radius: var(--rs);
  font-size: 12px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  color: var(--text);
}
.csp-sf-range input:focus { border-color: var(--terra); }
.csp-sf-range span { font-size: 12px; color: var(--stone); }
.csp-sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--bg3);
  display: flex;
  gap: 8px;
}
.csp-sf-reset {
  flex: 1; padding: 8px; border-radius: 30px;
  border: 1.5px solid var(--bg3); background: var(--white);
  color: var(--stone); font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: 'DM Sans', sans-serif; transition: all .15s;
}
.csp-sf-reset:hover { border-color: #b84040; color: #b84040; }
.csp-sf-apply {
  flex: 2; padding: 8px; border-radius: 30px;
  background: var(--terra); color: white;
  font-size: 12px; font-weight: 700; border: none;
  cursor: pointer; font-family: 'DM Sans', sans-serif; transition: background .15s;
}
.csp-sf-apply:hover { background: var(--terra-l); }

/* ─── LISTING ─── */
.csp-listing {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.csp-listing-header {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border-bottom: 1px solid var(--bg3);
  flex-shrink: 0;
  flex-wrap: wrap;
}
.csp-listing-count { font-size: 13px; color: var(--text-m); }
.csp-listing-count strong { color: var(--brown); font-weight: 700; }
.csp-active-filters {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 16px;
  background: var(--terra-bg);
  border-bottom: 1px solid var(--terra-p);
  align-items: center;
}
.csp-active-filters.visible { display: flex; }
.csp-af-label { font-size: 11px; font-weight: 700; color: var(--terra); text-transform: uppercase; letter-spacing: .06em; }
.csp-af-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600;
  background: var(--terra); color: white; cursor: pointer;
}
.csp-af-tag:hover { background: var(--terra-l); }
.csp-af-clear { font-size: 11px; color: var(--terra); text-decoration: underline; cursor: pointer; margin-left: auto; }
.csp-sort { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.csp-sort label { font-size: 11px; color: var(--stone); }
.csp-sort select {
  padding: 4px 8px; border: 1.5px solid var(--bg3);
  border-radius: var(--rs); font-size: 11px;
  font-family: 'DM Sans', sans-serif; color: var(--text);
  background: var(--white); outline: none; cursor: pointer;
}
.csp-grid { padding: 14px; display: grid; gap: 12px; }
.csp-grid.g3 { grid-template-columns: repeat(3, 1fr); }
.csp-grid.g2 { grid-template-columns: repeat(2, 1fr); }
.csp-grid.g1 { grid-template-columns: 1fr; }

/* ─── CARD ─── */
.csp-card {
  background: var(--white);
  border-radius: var(--r);
  border: 1px solid var(--bg3);
  overflow: hidden;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  flex-direction: column;
}
.csp-card:hover { box-shadow: var(--shm); transform: translateY(-2px); border-color: var(--bg4); }
.csp-card-thumb { height: 155px; position: relative; overflow: hidden; }
.csp-card-img { width: 100%; height: 100%; object-fit: cover; }
.csp-card-type {
  position: absolute; top: 10px; left: 10px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 10px; font-weight: 700;
  background: rgba(59,35,20,.72); color: white;
  backdrop-filter: blur(4px);
  letter-spacing: .03em;
}
.csp-card-fav {
  position: absolute; top: 10px; right: 10px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.88); backdrop-filter: blur(4px);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; transition: all .15s;
}
.csp-card-fav:hover { background: white; transform: scale(1.1); }
.csp-card-badges {
  position: absolute; bottom: 10px; left: 10px;
  display: flex; gap: 4px; flex-wrap: wrap;
}
.csp-card-badge {
  padding: 3px 9px; border-radius: 20px;
  font-size: 10px; font-weight: 700;
  background: rgba(255,255,255,.9); color: var(--brown);
  backdrop-filter: blur(4px);
}
.csp-card-instant { background: var(--green); color: white; }
.csp-card-body { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; }
.csp-card-title {
  font-size: 13px; font-weight: 700; color: var(--brown);
  line-height: 1.35; margin-bottom: 5px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.csp-card-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--stone); margin-bottom: 6px; flex-wrap: wrap;
}
.csp-card-stars { color: var(--terra); font-weight: 700; }
.csp-card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.csp-card-tag {
  padding: 2px 8px; border-radius: 10px;
  font-size: 10px; font-weight: 600;
  background: var(--bg); color: var(--text-m);
}
.csp-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 9px; border-top: 1px solid var(--bg3);
}
.csp-card-price {
  font-family: 'Playfair Display', serif;
  font-size: 17px; color: var(--terra); line-height: 1;
}
.csp-card-price span {
  font-size: 11px; color: var(--stone);
  font-family: 'DM Sans', sans-serif; font-weight: 400;
}
.csp-card-cta {
  padding: 6px 14px; border-radius: 20px;
  background: var(--terra); color: white;
  font-size: 11px; font-weight: 700; border: none;
  cursor: pointer; font-family: 'DM Sans', sans-serif; transition: all .15s;
}
.csp-card-cta:hover { background: var(--terra-l); }

/* ─── MAP ─── */
.csp-map { flex: 1; min-width: 0; position: relative; isolation: isolate; }
.csp-map .leaflet-container { width: 100%; height: 100%; }
.csp-map .leaflet-control-zoom { border: none !important; box-shadow: var(--sh) !important; }
.csp-map .leaflet-control-zoom a {
  background: white !important; color: var(--brown) !important;
  border: 1px solid var(--bg3) !important;
  width: 30px !important; height: 30px !important; line-height: 30px !important;
}
.csp-popup { font-family: 'DM Sans', sans-serif; }
.csp-popup-body { padding: 10px 12px; }
.csp-popup-title { font-size: 13px; font-weight: 700; color: var(--brown); margin-bottom: 3px; }
.csp-popup-meta { font-size: 11px; color: var(--stone); margin-bottom: 5px; }
.csp-popup-price { font-family: 'Playfair Display', serif; font-size: 16px; color: var(--terra); }
.csp-popup-price span { font-size: 11px; color: var(--stone); font-family: 'DM Sans', sans-serif; }
.leaflet-popup-content-wrapper { border-radius: var(--r) !important; box-shadow: var(--shm) !important; padding: 0 !important; }
.leaflet-popup-content { margin: 0 !important; width: 210px !important; }
.leaflet-popup-tip { display: none; }
.csp-marker {
  background: white; border: 2px solid var(--terra); border-radius: 20px;
  padding: 4px 10px; font-size: 11px; font-weight: 700; color: var(--terra);
  font-family: 'DM Sans', sans-serif; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,.14); cursor: pointer; transition: all .15s;
}
.csp-marker:hover, .csp-marker.active { background: var(--terra); color: white; transform: scale(1.08); }

/* ─── EMPTY STATE ─── */
.csp-empty {
  text-align: center;
  padding: 60px 20px;
  grid-column: 1 / -1;
}
.csp-empty-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px; color: var(--brown); margin-bottom: 8px;
}
.csp-empty-sub {
  font-size: 13px; color: var(--stone);
  max-width: 280px; margin: 0 auto 20px; line-height: 1.6;
}
.csp-empty-btn {
  padding: 10px 24px; border-radius: 30px;
  background: var(--terra); color: white;
  font-size: 13px; font-weight: 700; border: none;
  cursor: pointer; font-family: 'DM Sans', sans-serif; transition: all .15s;
}
.csp-empty-btn:hover { background: var(--terra-l); }

/* ─── VIEW MODES ─── */
.csp-body.mode-list .csp-map { display: none; }
.csp-body.mode-list .csp-listing { flex: 1; }
.csp-body.mode-list .csp-grid { grid-template-columns: repeat(3, 1fr); }
.csp-body.mode-map .csp-listing { display: none; }
.csp-body.mode-map .csp-map { flex: 1; }
.csp-body.mode-split .csp-listing { flex: 0 0 460px; max-width: 460px; }
.csp-body.mode-split .csp-map { flex: 1; }
.csp-body.mode-split .csp-grid { grid-template-columns: 1fr; }

/* ─── TOAST ─── */
.csp-toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  background: var(--brown); color: white;
  padding: 10px 24px; border-radius: 30px;
  font-size: 13px; font-weight: 600; z-index: 9999;
  display: none; box-shadow: var(--shm); transition: opacity .3s;
  font-family: 'DM Sans', sans-serif;
}

/* ═══════════════════════════════════════════
   MOBILE — solution UX bottom sheet
════════════════════════════════════════════ */
/* ─── ÉLÉMENTS MOBILE-ONLY : cachés sur desktop ─── */
.csp-mobile-nav    { display: none; }
.csp-mob-sheet     { display: none; }
.csp-mob-search-bar{ display: none; }

/* ─── MOB CHIPS (utilisés hors media query aussi) ─── */
.csp-mob-chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.csp-mob-chips::-webkit-scrollbar { display: none; }
.csp-mob-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-m);
  border: 1.5px solid var(--bg3);
  background: var(--white);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all .15s;
}
.csp-mob-chip:hover { border-color: var(--terra); color: var(--terra); }
.csp-mob-chip.on { border-color: var(--terra); background: var(--terra-bg); color: var(--terra); font-weight: 600; }

@media (max-width: 768px) {
  :root {
    --strip-h: 56px;
    --tabs-h:  0px;   /* Tabs migrent dans bottom nav */
    --chips-h: 0px;   /* Chips masquées sur mobile */
    --total-fixed: var(--strip-h);
  }

  /* Cacher les éléments desktop */
  .csp-tabs          { display: none; }
  .csp-chips-bar     { display: none; }
  .csp-strip-views   { display: none; }
  .csp-strip-fields  { display: none; } /* capsule multi-champs cachée */

  /* Barre de recherche mobile simple */
  .csp-mob-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    background: var(--bg);
    border: 1.5px solid var(--bg3);
    border-radius: 40px;
    padding: 0 16px;
    height: 40px;
    cursor: pointer;
    color: var(--stone);
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    transition: border-color .15s;
  }
  .csp-mob-search-bar:active { border-color: var(--terra); background: var(--white); }
  .csp-mob-search-bar span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
  }
  .csp-strip-count { font-size: 12px; white-space: nowrap; flex-shrink: 0; }

  /* Sidebar fermée = hauteur 0 sur mobile (flex-direction:column) */
  .csp-sidebar     { height: 0; overflow: hidden; }
  .csp-sidebar.open { width: 100%; height: auto; position: absolute; z-index: 500; top: 0; bottom: 60px; overflow-y: auto; }

  /* Body mobile = plein écran avec bottom nav */
  .csp-body {
    height: calc(100vh - var(--strip-h) - 60px - 62px);
    flex-direction: column;
  }

  /* Vue mobile : liste par défaut, carte toggle */
  .csp-body.mode-split .csp-listing { flex: 1; max-width: 100%; }
  .csp-body.mode-split .csp-map     { display: none; }
  .csp-body.mode-map .csp-listing   { display: none; }
  .csp-body.mode-map .csp-map       { flex: 1; height: 100%; }
  .csp-body.mode-list .csp-grid     { grid-template-columns: 1fr; }

  /* ─── BOTTOM NAV MOBILE ─── */
  :root { --mob-nav-h: 60px; }
  .csp-mobile-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--mob-nav-h);
    background: var(--white);
    border-top: 2px solid var(--bg3);
    display: flex;
    z-index: 400;
    box-shadow: 0 -4px 20px rgba(59,35,20,.1);
  }
  .csp-mob-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 600;
    color: var(--stone);
    cursor: pointer;
    border: none;
    background: none;
    font-family: 'DM Sans', sans-serif;
    transition: all .15s;
    padding: 6px 4px;
    border-top: 3px solid transparent;
  }
  .csp-mob-tab.active { color: var(--terra); border-top-color: var(--terra); }
  .csp-mob-tab svg { width: 20px; height: 20px; }
  .csp-mob-tab-count {
    position: absolute;
    top: 8px;
    background: var(--terra);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 10px;
    margin-left: 14px;
    margin-top: -2px;
  }

  /* ─── MOBILE FILTER SHEET (bottom drawer) ─── */
  .csp-mob-sheet {
    position: fixed;
    bottom: 60px;
    left: 0; right: 0;
    background: var(--white);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 40px rgba(59,35,20,.18);
    z-index: 600;
    display: none;
    max-height: 75vh;
    flex-direction: column;
  }
  .csp-mob-sheet.open {
    display: flex;
    animation: slideUpSheet .3s cubic-bezier(.4,0,.2,1);
  }
  @keyframes slideUpSheet {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }
  .csp-mob-sheet-handle {
    width: 40px; height: 4px;
    background: var(--bg3); border-radius: 2px;
    margin: 12px auto 16px;
    flex-shrink: 0;
  }
  .csp-mob-sheet-title {
    font-family: 'Playfair Display', serif;
    font-size: 16px; color: var(--brown);
    padding: 0 20px 12px;
    border-bottom: 1px solid var(--bg3);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .csp-mob-sheet-close {
    width: 28px; height: 28px; border-radius: 50%;
    border: none; background: var(--bg);
    color: var(--stone); font-size: 14px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
  }
  .csp-mob-sheet-body {
    overflow-y: auto;
    padding: 16px 20px;
    flex: 1;
  }
  /* Sections dans le sheet mobile */
  .csp-mob-section { margin-bottom: 20px; }
  .csp-mob-section-title {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .07em;
    color: var(--stone); margin-bottom: 10px;
  }
  .csp-mob-sheet-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--bg3);
    display: flex;
    gap: 10px;
    flex-shrink: 0;
  }
  .csp-mob-reset {
    flex: 1; padding: 12px; border-radius: 30px;
    border: 1.5px solid var(--bg3); background: var(--white);
    color: var(--stone); font-size: 13px; font-weight: 600;
    cursor: pointer; font-family: 'DM Sans', sans-serif;
  }
  .csp-mob-apply {
    flex: 2; padding: 12px; border-radius: 30px;
    background: var(--terra); color: white;
    font-size: 13px; font-weight: 700; border: none;
    cursor: pointer; font-family: 'DM Sans', sans-serif;
  }

  /* Ajuster padding listing sur mobile */
  .csp-listing-header { flex-wrap: wrap; gap: 6px; }
  .csp-sort { margin-left: 0; }
  .csp-grid { padding: 10px; gap: 10px; }
}

@media (max-width: 420px) {
  .csp-card-thumb { height: 130px; }
}

/* Fav button active state */
.csp-card-fav.csp-fav-active { color: #c45d3e; font-size: 16px; }

