/* ═══════════════════════════════════════════════
   COINMALIN — explore.css
   Mobile-first · Luxury minimal · Vert forêt
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* ── TOKENS ── */
:root {
  --g-deep:    #0D3D2B;
  --g-primary: #1A6B46;
  --g-mid:     #2E8B57;
  --g-light:   #4DB87A;
  --g-pale:    #EAF5EE;
  --g-50:      #F2FAF5;
  --white:     #FFFFFF;
  --cream:     #F7F4EE;
  --gold:      #C8A855;
  --ink:       #0A1F15;
  --body:      #2C4A38;
  --muted:     #6B8F7A;
  --subtle:    #A0BFB0;
  --line:      rgba(26,107,70,0.1);
  --line-md:   rgba(26,107,70,0.18);
  --sh-sm:     0 2px 16px rgba(13,61,43,0.07);
  --sh-md:     0 8px 32px rgba(13,61,43,0.11);
  --sh-lg:     0 20px 60px rgba(13,61,43,0.16);
  --sh-card:   0 4px 24px rgba(13,61,43,0.08);
  --r-xs:      6px;
  --r-sm:      10px;
  --r-md:      16px;
  --r-lg:      22px;
  --r-xl:      32px;
  --r-full:    999px;
  --f-display: 'DM Serif Display', Georgia, serif;
  --f-body:    'Plus Jakarta Sans', sans-serif;
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --spring:    cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast:    0.18s;
  --t-mid:     0.28s;
  --t-slow:    0.42s;
  --topbar-h:  60px;
  --bar-h:     72px; /* bottom nav */
  --safe-b:    env(safe-area-inset-bottom, 0px);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  color: var(--body);
  background: var(--g-50);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; -webkit-tap-highlight-color: transparent; }
input, select { font-family: inherit; -webkit-appearance: none; }
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; }

/* ── SCROLLBAR (desktop) ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-md); border-radius: 4px; }

/* ── SHARED BUTTON ── */
.ep-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--r-full);
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  transition: all var(--t-mid) var(--ease);
  white-space: nowrap; touch-action: manipulation;
}
.ep-btn--primary {
  background: var(--g-primary); color: var(--white);
  box-shadow: 0 4px 20px rgba(26,107,70,0.3);
}
.ep-btn--primary:hover { background: var(--g-deep); transform: translateY(-1px); box-shadow: 0 8px 28px rgba(26,107,70,0.38); }
.ep-btn--primary:active { transform: scale(0.97); }

/* ═══════════════════════════════════════
   TOPBAR
   ═══════════════════════════════════════ */
.ep-topbar {
  position: sticky; top: 0; z-index: 90;
  height: var(--topbar-h);
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--t-mid) var(--ease);
}
.ep-topbar.scrolled { box-shadow: var(--sh-sm); }

.ep-topbar__inner {
  height: 100%; padding: 0 16px;
  display: flex; align-items: center; gap: 12px;
}

.ep-logo {
  font-family: var(--f-display); font-size: 1.35rem; font-weight: 400;
  color: var(--g-deep); white-space: nowrap; flex-shrink: 0;
  letter-spacing: -0.01em;
}
.ep-logo span { color: var(--g-primary); }

/* Search pill */
.ep-search-pill {
  flex: 1; display: flex; align-items: center;
  background: var(--g-50); border: 1.5px solid var(--line);
  border-radius: var(--r-full); height: 42px;
  padding: 0 6px 0 14px; gap: 8px;
  transition: border-color var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
  max-width: 100%;
}
.ep-search-pill:focus-within {
  border-color: var(--g-mid); background: var(--white);
  box-shadow: 0 0 0 3px rgba(46,139,87,0.12);
}
.ep-search-pill svg { color: var(--subtle); flex-shrink: 0; }
.ep-search-pill input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 14px; font-weight: 500; color: var(--ink);
  min-width: 0;
}
.ep-search-pill input::placeholder { color: var(--subtle); }
.ep-search-pill__go {
  background: var(--g-primary); color: var(--white);
  width: 32px; height: 32px; border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background var(--t-fast) var(--ease);
}
.ep-search-pill__go:hover { background: var(--g-deep); }
.ep-search-pill__clear {
  width: 28px; height: 28px; border-radius: var(--r-full);
  display: none; align-items: center; justify-content: center;
  color: var(--subtle); flex-shrink: 0;
  transition: color var(--t-fast), background var(--t-fast);
}
.ep-search-pill__clear.show { display: flex; }
.ep-search-pill__clear:hover { color: var(--ink); background: var(--line); }

.ep-topbar__back {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--r-full);
  border: 1.5px solid var(--line); color: var(--muted); flex-shrink: 0;
  transition: all var(--t-fast) var(--ease);
}
.ep-topbar__back:hover { border-color: var(--line-md); color: var(--g-deep); background: var(--g-pale); }

/* ═══════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════ */
.ep-layout {
  display: flex;
  min-height: calc(100dvh - var(--topbar-h));
}

/* ═══════════════════════════════════════
   SIDEBAR (desktop) / BOTTOM SHEET (mobile)
   ═══════════════════════════════════════ */
.ep-sidebar {
  width: 272px; flex-shrink: 0;
  background: var(--white); border-right: 1px solid var(--line);
  position: sticky; top: var(--topbar-h);
  height: calc(100dvh - var(--topbar-h));
  overflow-y: auto; overflow-x: hidden;
}
.ep-sidebar__inner { padding: 24px 20px 40px; }

.ep-sidebar__head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 24px;
}
.ep-sidebar__title {
  font-family: var(--f-display); font-size: 1.15rem;
  color: var(--ink); flex: 1; letter-spacing: -0.01em;
}
.ep-sidebar__reset {
  font-size: 12px; font-weight: 600; color: var(--g-primary);
  padding: 5px 12px; border-radius: var(--r-full);
  background: var(--g-pale); border: 1px solid rgba(26,107,70,0.15);
  transition: all var(--t-fast) var(--ease); display: none;
}
.ep-sidebar__reset.show { display: inline-flex; }
.ep-sidebar__reset:hover { background: var(--g-primary); color: var(--white); }
.ep-sidebar__close {
  display: none; width: 36px; height: 36px; border-radius: var(--r-full);
  align-items: center; justify-content: center;
  color: var(--muted); flex-shrink: 0;
  transition: color var(--t-fast), background var(--t-fast);
}
.ep-sidebar__close:hover { color: var(--ink); background: var(--g-50); }

.ep-fgroup { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.ep-fgroup:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.ep-flabel {
  display: block; font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--subtle); margin-bottom: 12px;
}

/* Category pills */
.ep-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.ep-cat {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 12px; border-radius: var(--r-full);
  border: 1.5px solid var(--line);
  font-size: 13px; font-weight: 500; color: var(--body);
  background: var(--white); transition: all var(--t-fast) var(--ease);
  touch-action: manipulation;
}
.ep-cat:hover { border-color: var(--g-mid); color: var(--g-deep); }
.ep-cat.active {
  background: var(--g-primary); border-color: var(--g-primary);
  color: var(--white); font-weight: 600;
  box-shadow: 0 4px 14px rgba(26,107,70,0.25);
}
.ep-cat__icon { display:flex; align-items:center; flex-shrink:0; }
.ep-cat__icon svg { display:block; }

/* Select */
.ep-select {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500; color: var(--ink);
  background: var(--white); outline: none;
  cursor: pointer; transition: border-color var(--t-fast);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 7L11 1' stroke='%236B8F7A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.ep-select:focus { border-color: var(--g-mid); box-shadow: 0 0 0 3px rgba(46,139,87,0.1); }

/* Checkboxes */
.ep-checks { display: flex; flex-direction: column; gap: 10px; }
.ep-check {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; user-select: none; padding: 2px 0;
  touch-action: manipulation;
}
.ep-check input { display: none; }
.ep-check__box {
  width: 20px; height: 20px; flex-shrink: 0;
  border: 1.5px solid var(--line-md); border-radius: 5px;
  background: var(--white); transition: all var(--t-fast) var(--ease);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.ep-check input:checked ~ .ep-check__box {
  background: var(--g-primary); border-color: var(--g-primary);
}
.ep-check input:checked ~ .ep-check__box::after {
  content: ''; position: absolute;
  width: 11px; height: 7px;
  border-left: 2px solid white; border-bottom: 2px solid white;
  transform: rotate(-45deg) translateY(-1px);
}
.ep-check__label { font-size: 14px; font-weight: 500; color: var(--body); flex: 1; }

/* Budget */
.ep-budget-wrap {
  display: flex; align-items: center;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--white); overflow: hidden;
  transition: border-color var(--t-fast);
}
.ep-budget-wrap:focus-within { border-color: var(--g-mid); box-shadow: 0 0 0 3px rgba(46,139,87,0.1); }
.ep-budget-input {
  flex: 1; border: none; outline: none;
  padding: 12px 14px; font-size: 15px; font-weight: 500;
  color: var(--ink); background: transparent;
}
.ep-budget-curr { padding: 0 14px 0 4px; font-size: 12px; font-weight: 700; color: var(--g-mid); }
.ep-budget-hints { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ep-bhint {
  padding: 6px 13px; border-radius: var(--r-full);
  border: 1.5px solid var(--line); font-size: 12px; font-weight: 600;
  color: var(--muted); background: var(--white);
  transition: all var(--t-fast) var(--ease); touch-action: manipulation;
}
.ep-bhint:hover, .ep-bhint:active { border-color: var(--g-primary); color: var(--g-primary); background: var(--g-pale); }

/* ═══════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════ */
.ep-main { flex: 1; min-width: 0; padding: 16px 16px 100px; }

/* ── TOOLBAR ── */
.ep-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 14px; flex-wrap: wrap;
}
.ep-toolbar__l { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ep-toolbar__r { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* Count */
.ep-count { font-size: 14px; color: var(--muted); white-space: nowrap; }
.ep-count strong { color: var(--ink); font-weight: 700; }

/* Filter toggle (visible on mobile) */
.ep-filter-toggle {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: var(--r-full);
  border: 1.5px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--body);
  background: var(--white); transition: all var(--t-fast);
  touch-action: manipulation; position: relative;
}
.ep-filter-toggle:hover { border-color: var(--g-mid); color: var(--g-deep); }
.ep-filter-badge {
  position: absolute; top: -5px; right: -5px;
  width: 18px; height: 18px; border-radius: var(--r-full);
  background: var(--g-primary); color: var(--white);
  font-size: 10px; font-weight: 700;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(26,107,70,0.35);
}
.ep-filter-badge.show { display: flex; }

/* Sort */
.ep-sort {
  padding: 9px 14px; border-radius: var(--r-full);
  border: 1.5px solid var(--line);
  font-size: 13px; font-weight: 500; color: var(--body);
  background: var(--white); outline: none; cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%236B8F7A' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  padding-right: 28px;
  transition: border-color var(--t-fast);
}
.ep-sort:focus { border-color: var(--g-mid); }

/* View toggle */
.ep-vtoggle {
  display: flex; border: 1.5px solid var(--line);
  border-radius: var(--r-sm); overflow: hidden; background: var(--white);
}
.ep-vbtn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; color: var(--subtle);
  transition: color var(--t-fast), background var(--t-fast);
}
.ep-vbtn.active { color: var(--g-primary); background: var(--g-pale); }
.ep-vbtn:hover:not(.active) { color: var(--body); background: var(--g-50); }

/* Map button */
.ep-mapbtn {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: var(--r-full);
  border: 1.5px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--body);
  background: var(--white);
  transition: all var(--t-fast) var(--ease);
}
.ep-mapbtn:hover {
  border-color: var(--g-primary);
  color: var(--g-primary);
  background: var(--g-pale);
}
.ep-mapbtn.active {
  background: linear-gradient(135deg, #1A6B46, #C8A855);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(26,107,70,.3);
}

/* ── CHIPS ── */
.ep-chips {
  display: flex; flex-wrap: nowrap; gap: 6px;
  overflow-x: auto; margin-bottom: 14px;
  padding-bottom: 2px; /* prevent clipping */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ep-chips::-webkit-scrollbar { display: none; }
.ep-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--g-pale); color: var(--g-deep);
  padding: 7px 12px 7px 14px; border-radius: var(--r-full);
  font-size: 12px; font-weight: 600; white-space: nowrap;
  border: 1px solid rgba(26,107,70,0.14); flex-shrink: 0;
  animation: chipIn 0.2s var(--spring) both;
}
@keyframes chipIn {
  from { opacity: 0; transform: scale(0.85) translateY(4px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.ep-chip button {
  display: flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(26,107,70,0.12); color: var(--g-primary);
  font-size: 13px; line-height: 1; transition: all var(--t-fast);
}
.ep-chip button:hover { background: var(--g-primary); color: var(--white); }

/* ── MAP ── */
.ep-map {
  background: var(--white);
  border-radius: var(--r-lg);
  height: 480px;
  margin-bottom: 20px;
  overflow: hidden;
  display: none;
  position: relative;
  /* Bordure dégradée vert → or → rouge — ultra élégante */
  border: 2.5px solid transparent;
  background-clip: padding-box;
  box-shadow:
    0 0 0 2.5px transparent,
    0 12px 48px rgba(13,61,43,0.18),
    0 4px 16px rgba(200,168,85,0.12);
  /* Gradient border trick */
  outline: 2.5px solid transparent;
}
/* Gradient border via pseudo-element */
.ep-map::before {
  content: '';
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: calc(var(--r-lg) + 2px);
  background: linear-gradient(135deg, #1A6B46 0%, #2E8B57 50%, #1A6B46 100%);
  pointer-events: none;
}
.ep-map.show { display: block; animation: fadeSlide 0.35s var(--ease) both; }
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-8px) scale(0.99); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Leaflet map container ── */
#gmap {
  width: 100%;
  height: 480px;     /* hauteur explicite — évite le problème height:100% */
  position: relative; /* ancre le loader + panes Leaflet */
}

/* Vignette intérieure subtile */
#gmap::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 450;
  border-radius: inherit;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.06);
}

/* ── Overrides Leaflet — CoinMalin Pro ── */
.leaflet-container { font-family: 'Plus Jakarta Sans', sans-serif; }

/* Carte — style propre et pro, pas de filtre agressif */
.leaflet-tile-pane {
  filter: saturate(1.15) contrast(1.05) brightness(1.02);
}

/* Popup ultra-épurée, sans flèche */
.leaflet-popup-content-wrapper {
  border-radius: 18px !important;
  padding: 0 !important;
  overflow: hidden !important;
  box-shadow: 0 16px 48px rgba(0,0,0,.22), 0 2px 8px rgba(0,0,0,.12) !important;
  border: none !important;
}
.leaflet-popup-content { margin: 0 !important; width: auto !important; }
.leaflet-popup-tip-container { display: none !important; }
.leaflet-popup-close-button {
  top: 10px !important; right: 10px !important;
  font-size: 18px !important;
  color: #fff !important;
  background: rgba(0,0,0,.25) !important;
  border-radius: 50% !important;
  width: 22px !important; height: 22px !important;
  line-height: 20px !important; text-align: center !important;
}

/* Marqueurs sans fond Leaflet */
.cm-pin-icon,
.cm-label-icon,
.cm-user-icon { background: none !important; border: none !important; }

/* ── Marqueur pilule premium (style Airbnb/Google) ── */
.cm-mk-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 3px 8px rgba(10,31,21,.22));
  animation: cm-pop .22s cubic-bezier(.34,1.56,.64,1) both;
}
.cm-mk {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #0A1F15;
  border: 1px solid rgba(10,31,21,.08);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: .1px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.1;
  transition: transform .16s ease, background .16s ease, color .16s ease;
}
.cm-mk__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 2.5px rgba(255,255,255,.9) inset;
}
.cm-mk__tip {
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid #fff;
  margin-top: -1px;
}
.cm-mk-wrap:hover .cm-mk { transform: scale(1.07); }
/* État actif (popup ouvert) : pilule inversée vert CoinMalin */
.cm-mk--active .cm-mk {
  background: #0D3D2B;
  color: #fff;
  border-color: #0D3D2B;
  transform: scale(1.08);
}
.cm-mk--active .cm-mk__tip { border-top-color: #0D3D2B; }

/* ── Cluster (groupe d'établissements proches) ── */
.cm-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1A6B46, #0D3D2B);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', sans-serif;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.92);
  box-shadow: 0 4px 14px rgba(10,31,21,.35), 0 0 0 6px rgba(26,107,70,.14);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
  animation: cm-pop .22s cubic-bezier(.34,1.56,.64,1) both;
}
.cm-cluster:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(10,31,21,.4), 0 0 0 9px rgba(26,107,70,.18);
}

/* ── Labels de quartiers sur la carte ── */
.cm-qtr-icon { background: none !important; border: none !important; }
.cm-qtr-label {
  transform: translate(-50%, -50%);
  display: inline-block;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(3px);
  color: #0D3D2B;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(13,61,43,.14);
  box-shadow: 0 2px 8px rgba(10,31,21,.10);
  white-space: nowrap;
  pointer-events: none;
}

/* ── Message temporaire sur la carte (géoloc, erreurs) ── */
.cm-map-msg {
  position: absolute;
  bottom: 18px; left: 50%;
  transform: translateX(-50%) translateY(12px);
  z-index: 1100;
  max-width: min(92%, 420px);
  background: rgba(13,61,43,.94);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  padding: 10px 18px;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(10,31,21,.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease, transform .3s ease;
}
.cm-map-msg.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.cm-map-msg--err { background: rgba(153,27,27,.95); }
/* Mobile : au-dessus du bouton « Ma position » pour ne pas le recouvrir */
@media (max-width: 768px) {
  .cm-map-msg { bottom: 68px; font-size: 12px; padding: 9px 14px; }
}

/* ── Bouton « Ma position » ── */
.cm-locate-btn {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,.96);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1A6B46;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  transition: background .18s, color .18s, transform .15s;
}
.cm-locate-btn:hover {
  background: linear-gradient(135deg, #1A6B46, #0D3D2B);
  color: #fff;
}
.cm-locate-btn:active { transform: scale(.94); }
.cm-locate-btn--busy svg { animation: ep-spin .8s linear infinite; }
.cm-locate-btn--err { background: #FEF2F2; color: #DC2626; }

/* ── Point utilisateur animé ── */
.cm-user-dot { position: relative; width: 26px; height: 26px; }
.cm-user-dot__core {
  position: absolute; inset: 5px;
  background: linear-gradient(135deg, #38BDF8, #0369A1);
  border: 2.5px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(3,105,161,.55);
}
.cm-user-dot__pulse {
  position: absolute; inset: 0;
  background: rgba(56,189,248,.28);
  border-radius: 50%;
  animation: cm-pulse 2s ease-out infinite;
}
@keyframes cm-pulse {
  0%   { transform: scale(1); opacity: .9; }
  70%  { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

/* ── Contrôles Leaflet — style premium ── */
.leaflet-control-zoom {
  border: none !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.18) !important;
  border-radius: 12px !important;
  overflow: hidden;
}
.leaflet-control-zoom a {
  background: rgba(255,255,255,0.95) !important;
  color: #1A6B46 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  border-bottom: 1px solid rgba(26,107,70,0.12) !important;
  transition: background 0.18s, color 0.18s !important;
}
.leaflet-control-zoom a:last-child { border-bottom: none !important; }
.leaflet-control-zoom a:hover {
  background: linear-gradient(135deg, #1A6B46, #C8A855) !important;
  color: #fff !important;
}
/* Attribution discrète */
.leaflet-control-attribution {
  background: rgba(255,255,255,0.75) !important;
  backdrop-filter: blur(6px) !important;
  font-size: 9px !important;
  border-radius: 8px 0 0 0 !important;
  padding: 3px 7px !important;
}

/* Apparition des marqueurs */
@keyframes cm-pop {
  from { transform: scale(.5) translateY(10px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}

/* ── FALLBACK (aucune carte charg\u00e9e) ── */
.ep-map-fallback {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  font-size: 13px; color: var(--muted);
}
.ep-map-fallback strong { color: var(--g-primary); }
.ep-map-fallback code {
  font-family: monospace; font-size: 12px;
  background: var(--g-pale); padding: 2px 6px; border-radius: 4px;
}

/* ── Loader carte ── */
.ep-map-loader {
  position: absolute;
  inset: 0;
  z-index: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.ep-map-loader__spin {
  width: 32px; height: 32px;
  border: 3px solid var(--line);
  border-top-color: var(--g-primary);
  border-radius: 50%;
  animation: ep-spin 0.8s linear infinite;
}
@keyframes ep-spin { to { transform: rotate(360deg); } }

/* ── MAP COUNTER badge ── */
.ep-map-badge {
  position: absolute; top: 14px; left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 6px 16px;
  font-size: 12px; font-weight: 700;
  color: var(--g-primary);
  box-shadow: var(--sh-sm);
  pointer-events: none;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .ep-map,
  #gmap  { height: 340px; }
}

/* ── RESULTS ── */
.ep-results.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.ep-results.list { display: flex; flex-direction: column; gap: 10px; }

/* ── CARD ── */
.ep-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; display: block;
  transition: transform var(--t-mid) var(--ease),
              box-shadow var(--t-mid) var(--ease),
              border-color var(--t-mid) var(--ease);
  animation: cardIn 0.35s var(--ease) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ep-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); border-color: rgba(26,107,70,0.18); }
.ep-card:active { transform: scale(0.985); }

/* GRID card */
.ep-card__img-wrap { position: relative; height: 190px; overflow: hidden; }
.ep-card__img-wrap::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(10,20,13,0.15) 0%, transparent 50%);
}
.ep-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s var(--ease); }
.ep-card:hover .ep-card__img { transform: scale(1.05); }

/* Status badge */
.ep-badge {
  position: absolute; top: 10px; right: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
  padding: 5px 10px; border-radius: var(--r-full);
  font-size: 11px; font-weight: 700; letter-spacing: 0.01em;
}
.ep-badge--open  { color: #1A6B46; }
.ep-badge--closed { color: #C0392B; }
.ep-badge--full  { color: #D97706; }
.ep-badge__dot {
  width: 6px; height: 6px; border-radius: 50%; background: currentColor;
  animation: blink 2s ease infinite;
}
.ep-badge--closed .ep-badge__dot { animation: none; }
@keyframes blink {
  0%,100% { opacity: 1; } 50% { opacity: 0.45; }
}

/* Delivery + distance chips on image */
.ep-card__delivery {
  position: absolute; bottom: 10px; left: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--g-primary); color: var(--white);
  padding: 4px 10px; border-radius: var(--r-full);
  font-size: 11px; font-weight: 700;
}
.ep-card__dist {
  position: absolute; bottom: 10px; right: 10px;
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(0,0,0,0.52); backdrop-filter: blur(4px);
  color: var(--white); padding: 4px 10px;
  border-radius: var(--r-full); font-size: 11px; font-weight: 600;
}

/* Card body */
.ep-card__body { padding: 16px; }
.ep-card__meta {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 5px; flex-wrap: wrap;
}
.ep-card__cat {
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--g-primary);
}
.ep-card__sep { color: var(--subtle); font-size: 11px; }
.ep-card__qtr { font-size: 12px; color: var(--muted); }
.ep-card__name {
  font-family: var(--f-display); font-size: 1.1rem; font-weight: 400;
  color: var(--ink); line-height: 1.3; margin-bottom: 10px;
  letter-spacing: -0.01em;
}

/* Menu tags */
.ep-card__menu { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.ep-card__mtag {
  font-size: 11px; font-weight: 500; color: var(--muted);
  background: var(--g-50); padding: 4px 10px;
  border-radius: var(--r-full); white-space: nowrap;
}

/* Footer */
.ep-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.ep-card__price { font-size: 13px; font-weight: 700; color: var(--g-primary); margin-bottom: 5px; }
.ep-card__stars { display: flex; align-items: center; gap: 4px; font-size: 12px; }
.ep-card__stars strong { color: var(--ink); font-weight: 700; }
.ep-card__stars span { color: var(--muted); }
.ep-stars-row { display: flex; gap: 1px; }

/* Equipment icons */
.ep-equips { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.ep-equip {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: var(--r-xs);
  background: var(--g-50); color: var(--g-mid);
  border: 1px solid rgba(26,107,70,.1);
  transition: background .18s, color .18s;
}
.ep-equip svg { display: block; }
.ep-equip--more {
  font-size: 10px; font-weight: 700; color: var(--muted);
  background: transparent; border-color: transparent;
  width: auto; padding: 0 2px;
}

/* LIST VIEW */
.ep-card__list { display: flex; align-items: stretch; min-height: 110px; }
.ep-card__list-img { width: 120px; flex-shrink: 0; overflow: hidden; }
.ep-card__list-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s var(--ease); }
.ep-card:hover .ep-card__list-img img { transform: scale(1.06); }
.ep-card__list-body { flex: 1; padding: 14px 14px; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.ep-card__list-right {
  padding: 14px 14px 14px 10px; flex-shrink: 0; text-align: right;
  display: flex; flex-direction: column; align-items: flex-end;
  justify-content: space-between; border-left: 1px solid var(--line);
  min-width: 100px;
}
.ep-card__list-price { font-size: 10px; font-weight: 500; color: var(--muted); line-height: 1.4; }
.ep-card__list-price strong { display: block; font-size: 13px; font-weight: 700; color: var(--g-primary); }
.ep-card__list-dist {
  font-size: 11px; font-weight: 600; color: var(--muted);
  background: var(--g-50); padding: 4px 10px; border-radius: var(--r-full);
}

/* ══════════════════════════════════════════════════
   CARTE — wrapper + lien interne
══════════════════════════════════════════════════ */

.ep-card--wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t-mid) var(--ease),
              box-shadow var(--t-mid) var(--ease),
              border-color var(--t-mid) var(--ease);
  animation: cardIn 0.35s var(--ease) both;
  will-change: transform;
}
.ep-card--wrap:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); border-color: rgba(26,107,70,0.18); }
.ep-card--wrap:active { transform: scale(0.985); }

.ep-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
  flex: 1;
}

/* ══════════════════════════════════════════════════
   STATS ROW — vues + likes dans l'espace blanc
   Positionné sous le pied de la carte, style épuré.
══════════════════════════════════════════════════ */

.ep-card__stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid var(--line);
}

/* Compteur de vues */
.ep-card__views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--subtle);
  letter-spacing: 0.01em;
  user-select: none;
}
.ep-card__views svg { flex-shrink: 0; }

/* Bouton Like ❤ + compteur */
.ep-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 5px 11px;
  border-radius: 50px;
  border: 1.5px solid var(--line-md);
  background: var(--g-50);
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.ep-like-btn:hover {
  background: #FEF2F2;
  border-color: #FECACA;
  color: #E53E3E;
  transform: scale(1.04);
}
.ep-like-btn:active { transform: scale(0.94); }

/* État liké */
.ep-like-btn--liked {
  background: #FEF2F2 !important;
  border-color: #FECACA !important;
  color: #E53E3E !important;
}

/* Animation pop au clic — cœur qui grossit */
.ep-like-btn--pop {
  animation: epLikePop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes epLikePop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  70%  { transform: scale(0.90); }
  100% { transform: scale(1); }
}

/* ── EMPTY STATE ── */
.ep-empty {
  display: flex; flex-direction: column; align-items: center;
  padding: 60px 24px; gap: 14px; text-align: center;
  animation: cardIn 0.3s var(--ease) both;
}
.ep-empty__icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--subtle);
}
.ep-empty h3 { font-family: var(--f-display); font-size: 1.4rem; color: var(--ink); }
.ep-empty p { font-size: 14px; color: var(--muted); line-height: 1.6; max-width: 300px; }

/* ═══════════════════════════════════════
   BOTTOM SHEET (mobile filters)
   ═══════════════════════════════════════ */
.ep-sheet-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(10,31,21,0.45); backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.ep-sheet-overlay.show { display: block; animation: fadeIn 0.22s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.ep-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 201;
  background: var(--white);
  border-radius: 24px 24px 0 0;
  max-height: 88dvh; overflow-y: auto;
  padding: 0 0 calc(24px + var(--safe-b));
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
}
.ep-sheet.show { transform: translateY(0); }

.ep-sheet__handle {
  display: flex; align-items: center; justify-content: center;
  padding: 12px 0 4px;
}
.ep-sheet__handle-bar {
  width: 40px; height: 4px; border-radius: 2px; background: var(--line-md);
}

.ep-sheet__head {
  display: flex; align-items: center;
  padding: 12px 20px 16px; gap: 10px;
  border-bottom: 1px solid var(--line);
}
.ep-sheet__title {
  font-family: var(--f-display); font-size: 1.2rem;
  color: var(--ink); flex: 1; letter-spacing: -0.01em;
}
.ep-sheet__reset {
  font-size: 12px; font-weight: 600; color: var(--g-primary);
  padding: 6px 12px; border-radius: var(--r-full);
  background: var(--g-pale); border: 1px solid rgba(26,107,70,0.15);
  display: none; transition: all var(--t-fast);
}
.ep-sheet__reset.show { display: inline-flex; }
.ep-sheet__reset:hover { background: var(--g-primary); color: var(--white); }
.ep-sheet__close {
  width: 36px; height: 36px; border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); background: var(--g-50);
  transition: all var(--t-fast);
}

.ep-sheet__body { padding: 20px 20px 0; }

/* Apply button in sheet */
.ep-sheet__apply {
  margin: 20px; display: block; width: calc(100% - 40px);
  background: var(--g-primary); color: var(--white);
  padding: 16px; border-radius: var(--r-full); text-align: center;
  font-size: 15px; font-weight: 700; letter-spacing: -0.01em;
  box-shadow: 0 4px 20px rgba(26,107,70,0.3);
  transition: all var(--t-fast); touch-action: manipulation;
}
.ep-sheet__apply:hover { background: var(--g-deep); }
.ep-sheet__apply:active { transform: scale(0.97); }

/* ═══════════════════════════════════════
   DESKTOP BREAKPOINTS
   ═══════════════════════════════════════ */
@media (min-width: 640px) {
  .ep-results.grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .ep-main { padding: 20px 24px 80px; }
  .ep-card__img-wrap { height: 200px; }
  .ep-topbar__inner { padding: 0 24px; gap: 16px; }
}

@media (min-width: 960px) {
  /* On desktop: sidebar is always visible, no bottom sheet */
  .ep-filter-toggle { display: none; }
  .ep-sheet-overlay, .ep-sheet { display: none !important; }
  .ep-sidebar { display: block; }
  .ep-results.grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
  }
  .ep-main { padding: 24px 28px 60px; }
  .ep-card__list-right { display: flex; }
}

@media (max-width: 959px) {
  /* On mobile: sidebar is hidden, only bottom sheet */
  .ep-sidebar { display: none; }
  .ep-card__list-right { display: none; }
  .ep-card__list-img { width: 110px; }
}

@media (max-width: 360px) {
  .ep-logo { font-size: 1.15rem; }
  .ep-sort { display: none; }
  /* Le bouton Carte reste accessible sur TOUS les écrans — version compacte */
  .ep-mapbtn { padding: 0 10px; }
}

/* ═══════════════════════════════════════
   SKELETON LOADING
   ═══════════════════════════════════════ */
.ep-skeleton {
  pointer-events: none;
}
.ep-skeleton__img {
  height: 190px;
  background: linear-gradient(110deg, var(--g-50) 30%, var(--g-pale) 50%, var(--g-50) 70%);
  background-size: 250% 100%;
  animation: ep-shimmer 1.4s ease-in-out infinite;
}
.ep-skeleton__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ep-skeleton__line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(110deg, var(--g-50) 30%, var(--g-pale) 50%, var(--g-50) 70%);
  background-size: 250% 100%;
  animation: ep-shimmer 1.4s ease-in-out infinite;
}
.ep-skeleton__line--sm { width: 40%; }
.ep-skeleton__line--md { width: 70%; }
.ep-skeleton__line--lg { width: 90%; height: 16px; }
@keyframes ep-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════
   LOAD MORE BUTTON
   ═══════════════════════════════════════ */
.ep-load-more {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  margin: 8px auto 0;
  border-radius: var(--r-full);
  border: 1.5px solid var(--line-md);
  background: var(--white);
  color: var(--g-primary);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--f-body);
  cursor: pointer;
  transition: all var(--t-mid) var(--ease);
  touch-action: manipulation;
}
.ep-load-more:hover {
  background: var(--g-primary);
  color: var(--white);
  border-color: var(--g-primary);
  box-shadow: 0 4px 20px rgba(26,107,70,0.3);
  transform: translateY(-1px);
}
.ep-load-more:active { transform: scale(0.97); }

/* ═══════════════════════════════════════
   STATS ROW — hors du lien, dans le wrapper
   ═══════════════════════════════════════ */
.ep-card--wrap > .ep-card__stats-row {
  padding: 10px 16px 14px;
  border-top: 1px solid var(--line);
}
