/* ============================================================
   explorer.css — Page /explorer/
   Mobile-first, breakpoints : 768px (tablet), 1024px (desktop)
   ============================================================ */

/* ── Page ── */
.expl-page { background: #f5f6f8; min-height: 100vh; }

/* ── Topbar ── */
.expl-topbar {
  position: sticky;
  top: var(--height-navbar, 40px);
  z-index: 200;
  background: #2c3e50;
  padding: .65rem 1rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}

/* Mobile : barre compacte */
.expl-bar-compact { display: flex; align-items: center; gap: .5rem; }

.expl-bar-trigger {
  flex: 1;
  display: flex;
  align-items: center;
  gap: .6rem;
  background: #fff;
  border: none;
  border-radius: 10px;
  padding: .65rem 1rem;
  font-size: .95rem;
  color: #555;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}
.expl-bar-trigger i { color: #2c3e50; }

/* Desktop 4 lignes — masqué sur mobile */
.expl-desktop-bar {
  display: none;
  flex-direction: column;
  gap: .5rem;
}

/* L1 : Catégories */
.expl-l1 {
  display: flex;
  gap: .4rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: .1rem;
}
.expl-l1::-webkit-scrollbar { display: none; }

/* L2 : Où + Prix + Submit */
.expl-l2 {
  display: flex;
  align-items: stretch;
  gap: .5rem;
}

.expl-l2-ou {
  width: 440px;
  min-width: 440px;
  max-width: 440px;
  flex-shrink: 0;
  flex-grow: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(0,0,0,.12);
}

/* Quand — intégré dans L2, taille fixe calée sur le contenu */
.expl-l2-quand {
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-shrink: 0;
  flex-grow: 0;
  flex-wrap: nowrap;
  background: rgba(255,255,255,.08);
  border-radius: 12px;
  padding: .45rem .7rem;
}

/* L3 : Sous-catégories + Quoi + Rechercher */
.expl-l3 {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-height: 2rem;
  justify-content: flex-end;
}

.expl-l3-pills {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
  flex: 1;
  justify-content: flex-start;
}

.expl-l3-quoi {
  flex-shrink: 0;
  width: 440px;
  min-width: 440px;
  max-width: 440px;
  background: rgba(255,255,255,.12);
  border-radius: 8px;
}
.expl-l3-quoi .expl-input {
  background: transparent;
  color: rgba(255,255,255,.9);
  padding: .42rem .4rem .42rem 2.4rem;
  font-size: .88rem;
}
.expl-l3-quoi .expl-input::placeholder { color: rgba(255,255,255,.45); }
.expl-l3-quoi .expl-field-icon { color: rgba(255,255,255,.45); }

/* ── Bloc formulaire blanc (L2 + L3) ── */
.expl-search-block {
  background: rgba(255,255,255,.97);
  border-radius: 12px;
  padding: .55rem .75rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-top: .1rem;
}

/* L2 dans le bloc blanc : centrage vertical au lieu de stretch */
.expl-search-block .expl-l2 { align-items: center; }

/* L2-ou : même style que Quoi */
.expl-search-block .expl-l2-ou {
  background: #e8eaed;
  box-shadow: none;
  border-radius: 8px;
  border-right: none;
}
.expl-search-block .expl-l2-ou .expl-input {
  padding-top: .42rem;
  padding-bottom: .42rem;
}
/* L2-quand : séparateur gauche + droit */
.expl-search-block .expl-l2-quand {
  background: none;
  padding: .25rem .75rem;
  border-left: 2px solid #c8cdd5;
  border-right: 2px solid #c8cdd5;
}
/* L2-prix : séparateur déjà géré par quand */
.expl-search-block .expl-l2-prix {
  background: none;
  box-shadow: none;
  padding: .25rem .75rem;
}

/* Harmonisation hauteur toutes les pills dans le bloc blanc */
.expl-search-block .expl-pill,
.expl-search-block .expl-pill--subcat,
.expl-search-block .expl-pill--date-input,
.expl-search-block .expl-pill--gratuit {
  padding-top: .28rem;
  padding-bottom: .28rem;
  font-size: .78rem;
  line-height: 1.4;
}

/* Champ Quoi → fond gris, texte foncé */
.expl-search-block .expl-l3-quoi {
  background: #e8eaed;
  border-radius: 8px;
}
.expl-search-block .expl-l3-quoi .expl-input {
  color: #222;
}
.expl-search-block .expl-l3-quoi .expl-input::placeholder { color: #777; }
.expl-search-block .expl-l3-quoi .expl-field-icon { color: #555; }

/* Pills dans le bloc blanc → thème sombre contrasté */
.expl-search-block .expl-pill,
.expl-search-block .expl-pill--date {
  color: #2c3e50;
  border-color: #b0b8c4;
  background: #e8eaed;
}
.expl-search-block .expl-pill:hover,
.expl-search-block .expl-pill--date:hover {
  border-color: #2c3e50;
  color: #fff;
  background: #2c3e50;
}
.expl-search-block .expl-pill.active,
.expl-search-block .expl-pill--date.active {
  background: #2c3e50;
  border-color: #2c3e50;
  color: #fff;
}

/* Inputs date dans le bloc blanc */
.expl-search-block .expl-pill--date-input {
  color: #2c3e50;
  border-color: #b0b8c4;
  background: #e8eaed;
  color-scheme: light;
}
.expl-search-block .expl-pill--date-input:hover { border-color: #2c3e50; color: #fff; background: #2c3e50; }
.expl-search-block .expl-pill--date-input:focus { border-color: #e67e22; color: #2c3e50; }
.expl-search-block .expl-pill--date-input.active { background: #2c3e50; border-color: #2c3e50; color: #fff; }

/* Sous-catégories L3 dans le bloc blanc */
.expl-search-block .expl-pill--subcat {
  color: #2c3e50;
  border-color: #b0b8c4;
  background: #e8eaed;
}
.expl-search-block .expl-pill--subcat.active {
  background: #2c3e50;
  border-color: #2c3e50;
  color: #fff;
}

/* Pastille Gratuit dans le bloc blanc */
.expl-search-block .expl-pill--gratuit {
  color: #2c3e50;
  border-color: #b0b8c4;
  background: #e8eaed;
}
.expl-search-block .expl-pill--gratuit:hover { border-color: #27ae60; color: #fff; background: #27ae60; }
.expl-search-block .expl-pill--gratuit.active { background: #27ae60; border-color: #27ae60; color: #fff; }

/* Label Prix max */
.expl-search-block .expl-prix-max-label { color: #444; font-weight: 700; }

/* Bloc Prix */
.expl-l2-prix {
  display: flex;
  align-items: center;
  gap: .55rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(0,0,0,.12);
  padding: .5rem .85rem;
  flex-shrink: 0;
}

.expl-prix-max-label {
  font-size: .78rem;
  font-weight: 600;
  color: #999;
  white-space: nowrap;
}

.expl-prix-max-input {
  width: 85px;
  border: 1.5px solid #e0e3e8;
  border-radius: 8px;
  padding: .3rem .4rem;
  font-size: .9rem;
  font-weight: 700;
  color: #333;
  text-align: center;
  background: #f8f9fa;
}
.expl-prix-max-input:focus {
  outline: none;
  border-color: #039d9e;
  background: #fff;
}
.expl-prix-max-input::-webkit-inner-spin-button,
.expl-prix-max-input::-webkit-outer-spin-button { opacity: 1; }

/* Pastille Gratuit (sur fond blanc) */
.expl-pill--gratuit {
  display: none;
  align-items: center;
  gap: .3rem;
  padding: .28rem .75rem;
  border-radius: 16px;
  border: 1.5px solid #d0d5db;
  background: #fff;
  color: #555;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all .14s;
}
.expl-pill--gratuit:hover { border-color: #27ae60; color: #27ae60; }
.expl-pill--gratuit.active { background: #27ae60; border-color: #27ae60; color: #fff; }
.expl-pill--gratuit.shown { display: inline-flex; }

/* ── Champs génériques ── */
.expl-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.expl-field-icon {
  position: absolute;
  left: .85rem;
  color: #888;
  font-size: .9rem;
  pointer-events: none;
  z-index: 1;
}

.expl-input {
  width: 100%;
  border: none;
  outline: none;
  padding: .75rem .75rem .75rem 2.4rem;
  font-size: .95rem;
  background: transparent;
  color: #222;
}

/* Bouton géoloc */
.expl-geoloc-inline {
  position: absolute;
  right: .5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem .5rem;
  color: #aaa;
  font-size: 1rem;
  border-radius: 6px;
  transition: color .15s, background .15s;
  display: flex;
  align-items: center;
  gap: .3rem;
}
.expl-geoloc-inline:hover { color: #27ae60; background: #f0faf4; }
.expl-geoloc-inline.active { color: #27ae60; }

.expl-geoloc-label {
  font-size: .78rem;
  color: #aaa;
  font-weight: 500;
  white-space: nowrap;
}
.expl-geoloc-inline:hover .expl-geoloc-label,
.expl-geoloc-inline.active .expl-geoloc-label { color: #27ae60; }

.expl-input--ou { padding-right: 7rem; }

/* Select rayon */
.expl-rayon-select {
  display: none;
  position: absolute;
  right: 6.2rem;
  top: 50%;
  transform: translateY(-50%);
  appearance: none;
  -webkit-appearance: none;
  background: rgba(39,174,96,.1);
  border: 1.5px solid rgba(39,174,96,.45);
  border-radius: 12px;
  padding: .22rem .45rem;
  font-size: .78rem;
  font-weight: 600;
  color: #1a7a40;
  cursor: pointer;
}
.expl-rayon-select.visible { display: block; }

/* Bouton submit */
.expl-submit-btn {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: #039d9e;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: .42rem 1.2rem;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
  flex-shrink: 0;
}
.expl-submit-btn:hover { background: #027f80; }

/* Bouton réinitialiser */
.expl-reset-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  padding: .45rem .6rem;
  color: #888;
  font-size: .85rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .14s, color .14s;
}
.expl-reset-btn:hover { border-color: #e74c3c; color: #e74c3c; }

/* ── Pills ── */
.expl-pill {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .25rem .65rem;
  border-radius: 20px;
  border: 1.5px solid rgba(255,255,255,.32);
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.82);
  font-size: .75rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all .14s;
  flex-shrink: 0;
}
.expl-pill:hover {
  border-color: rgba(255,255,255,.65);
  color: #fff;
  background: rgba(255,255,255,.14);
}
.expl-pill.active {
  background: #fff;
  border-color: #fff;
  color: #2c3e50;
  font-weight: 700;
}

/* Sous-catégories L3 */
.expl-pill--subcat {
  padding: .28rem .7rem;
  font-size: .8rem;
  border-color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.06);
}
.expl-pill--subcat.active {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.7);
  color: #fff;
  font-weight: 600;
}

/* Date pills — même style que .expl-pill--cat */
.expl-pill--date { color: rgba(255,255,255,.82); }
.expl-pill--date.active {
  background: #fff;
  border-color: #fff;
  color: #2c3e50;
  font-weight: 700;
}

/* Inputs date stylés en pill — alignés sur .expl-pill */
.expl-pill--date-input {
  padding: .35rem .85rem;
  font-size: .83rem;
  font-weight: 500;
  color: rgba(255,255,255,.82);
  border: 1.5px solid rgba(255,255,255,.32);
  background: rgba(255,255,255,.07);
  cursor: pointer;
  width: auto;
  min-width: 0;
  color-scheme: dark;
  border-radius: 20px;
  outline: none;
  white-space: nowrap;
}
.expl-pill--date-input:hover { border-color: rgba(255,255,255,.65); color: #fff; background: rgba(255,255,255,.14); }
.expl-pill--date-input:focus { border-color: #e67e22; color: #fff; }
.expl-pill--date-input.active { background: #fff; border-color: #fff; color: #2c3e50; font-weight: 700; }

/* ── Suggestions autocomplete ── */
.expl-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,.13);
  z-index: 2000;
  max-height: 280px;
  overflow-y: auto;
  display: none;
}
.expl-suggestions.open { display: block; }

.expl-sug-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .65rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background .1s;
}
.expl-sug-item:last-child { border-bottom: none; }
.expl-sug-item:hover { background: #f5f6f8; }

.expl-sug-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  flex-shrink: 0;
}
.expl-sug-icon--ville       { background: #e8f4fd; color: #2980b9; }
.expl-sug-icon--departement { background: #e8f8f5; color: #27ae60; }
.expl-sug-icon--region      { background: #fdf2e9; color: #e67e22; }
.expl-sug-icon--theme       { font-size: 1.1rem; background: #f5f6f8; }
.expl-sug-icon--free        { background: #f0f4ff; color: #2c3e50; font-size: .85rem; }

.expl-sug-label  { font-size: .9rem; font-weight: 600; color: #222; }
.expl-sug-sub    { font-size: .78rem; color: #888; }
.expl-sug-header { padding: .5rem 1rem .25rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #aaa; }
.expl-sug-item--free { border-top: 1px solid #f0f0f0; margin-top: .25rem; }
.expl-themes-suggestions { max-height: 340px; }

/* ── Body ── */
.expl-body { display: block; }

/* Panneau gauche : caché en mobile */
.expl-col-filters { display: none; }

/* Centre : résultats */
.expl-col-results { min-width: 0; }

/* Droite : carte (collapse mobile) */
.expl-col-map {
  height: 0;
  overflow: hidden;
  transition: height .3s ease;
}
.expl-col-map.open { height: 280px; }

#expl-map { width: 100%; height: 100%; }

/* Toggle carte mobile uniquement */
.expl-map-toggle--mob {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: 100%;
  padding: .6rem 1rem;
  background: #fff;
  border: none;
  border-bottom: 1px solid #eee;
  color: #2c3e50;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
/* Bouton desktop : caché sur mobile (col-map height:0) */
.expl-map-toggle--desk { display: none; }

/* ── Panneau filtres gauche ── */
.expl-filters-title {
  font-weight: 700;
  font-size: .9rem;
  color: #2c3e50;
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.expl-filters-collapse-btn {
  position: relative;
  background: none;
  border: none;
  color: #bbb;
  font-size: .75rem;
  cursor: pointer;
  padding: .15rem .3rem;
  border-radius: 4px;
  transition: color .14s;
}
.expl-filters-collapse-btn:hover { color: #2c3e50; }
.expl-filters-collapse-btn::after {
  content: 'Replier tout';
  position: absolute;
  right: 0;
  bottom: calc(100% + 5px);
  background: #2c3e50;
  color: #fff;
  font-size: .72rem;
  font-weight: 400;
  white-space: nowrap;
  padding: .25rem .5rem;
  border-radius: 5px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
}
.expl-filters-collapse-btn:hover::after { opacity: 1; }
.expl-filters-collapse-row {
  display: flex;
  justify-content: flex-end;
  padding: .1rem 0;
  border-top: 1px solid #f0f0f0;
  margin-bottom: .1rem;
}

.expl-refine { display: flex; flex-direction: column; min-height: 0; }
.expl-refine:empty { display: none; }

.expl-refine-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: .3rem;
  padding: .6rem .85rem;
  border-bottom: 1px solid #f0f0f0;
}

.expl-refine-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #999;
  margin-bottom: .25rem;
  flex-basis: 100%;
}
.expl-refine-label i { margin-right: .25rem; color: #bbb; }

.expl-refine-chip {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .22rem .6rem;
  border-radius: 12px;
  border: 1px solid #d8dce2;
  background: #fff;
  font-size: .8rem;
  color: #444;
  cursor: pointer;
  white-space: nowrap;
  transition: all .12s;
}
.expl-refine-chip:hover { border-color: #2c3e50; color: #2c3e50; background: #eef1f5; }
.expl-refine-chip.active { background: #2c3e50; border-color: #2c3e50; color: #fff; }
.expl-refine-chip--sub.active { background: #27ae60; border-color: #27ae60; color: #fff; }
.expl-refine-chip-count { font-size: .7rem; opacity: .55; font-weight: 400; }

/* ── Arborescence facettes (même style que /recherche/) ── */
.facet-group {
  border-bottom: 1px solid #f0f0f0;
  padding: .3rem 0;
}
.facet-group:last-child { border-bottom: none; }

.facet-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  padding: .2rem 0;
  user-select: none;
  gap: .4rem;
}
.facet-summary::-webkit-details-marker { display: none; }

.facet-label-check {
  display: flex;
  align-items: center;
  gap: .4rem;
  cursor: pointer;
  flex: 1;
}
.facet-cb { cursor: pointer; accent-color: #2c3e50; }
.facet-label-text {
  font-size: .82rem;
  font-weight: 600;
  color: #2c3e50;
}
.facet-count-badge {
  font-size: .65rem;
  background: #2c3e50;
  color: #fff;
  border-radius: 8px;
  padding: .05rem .35rem;
  font-weight: 600;
  flex-shrink: 0;
}
.facet-chevron {
  font-size: .65rem;
  color: #aaa;
  flex-shrink: 0;
  transition: transform .2s;
}
details[open] .facet-chevron { transform: rotate(180deg); }

.facet-children {
  padding: .25rem 0 .25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.facet-child-label {
  display: flex;
  align-items: center;
  gap: .4rem;
  cursor: pointer;
  padding: .1rem 0;
}
.facet-child-label--top { padding: .2rem 0; }
.facet-child-label--tout {
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: .35rem;
  padding-bottom: .4rem;
}
.facet-child-text {
  font-size: .78rem;
  color: #555;
  flex: 1;
}
.facet-child-text.active { color: #2c3e50; font-weight: 700; }
.facet-child-count {
  font-size: .7rem;
  color: #aaa;
}
.facet-prix-bandeau {
  padding: .35rem .5rem;
  border-top: 1px solid #f0f0f0;
}
.facet-prix-bandeau .expl-pill--gratuit {
  padding: .1rem .45rem;
  font-size: .7rem;
}

/* ── Résultats ── */
.expl-results-section { padding: .5rem 0 2.5rem; }

.expl-results-header {
  padding: .4rem 1rem .5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.expl-count { font-size: .85rem; color: #777; font-weight: 500; }

.expl-list { display: flex; flex-direction: column; gap: .5rem; padding: 0 .75rem; }

/* ── Cards (article-card de style.css, état actif carte↔liste) ── */
.article-card.expl-card--active {
  box-shadow: 0 0 0 2px #f39c12, 0 4px 16px rgba(243,156,18,.2) !important;
}

.expl-card-img { width: 105px; min-width: 105px; height: 110px; flex-shrink: 0; overflow: hidden; }
.expl-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.expl-card-img-placeholder {
  width: 105px;
  min-width: 105px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: rgba(255,255,255,.7);
}
.expl-card-img-placeholder--manifestation { background: #3498db; }
.expl-card-img-placeholder--activite      { background: #27ae60; }
.expl-card-img-placeholder--hebergement   { background: #e67e22; }
.expl-card-img-placeholder--restaurant    { background: #8e44ad; }
.expl-card-img-placeholder--itineraire    { background: #555; }
.expl-card-img-placeholder--lieu          { background: #c0392b; }

.expl-card-body {
  flex: 1;
  min-width: 0;
  padding: .65rem .85rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.expl-card-cat {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .71rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.expl-card-cat--manifestation { color: #3498db; }
.expl-card-cat--activite      { color: #27ae60; }
.expl-card-cat--hebergement   { color: #e67e22; }
.expl-card-cat--restaurant    { color: #8e44ad; }
.expl-card-cat--itineraire    { color: #555; }
.expl-card-cat--lieu          { color: #c0392b; }

.expl-card-label {
  font-size: .95rem;
  font-weight: 700;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.expl-card-link {
  color: inherit;
  text-decoration: none;
}
.expl-card-link:hover { text-decoration: underline; }
.expl-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  color: #999;
  margin-top: .1rem;
}
.expl-card-meta i { font-size: .7rem; }

.expl-card-prix {
  font-size: .75rem;
  font-weight: 600;
  padding: .14rem .42rem;
  border-radius: 4px;
}
.expl-card-prix--gratuit { background: #e8f8f0; color: #27ae60; }
.expl-card-prix--payant  { background: #fef3e2; color: #e67e22; }

.expl-card-verified { color: #27ae60; font-size: .75rem; font-weight: 600; }
.expl-card-rank { font-size: .7rem; color: #bbb; font-weight: 700; letter-spacing: .03em; }

/* États vides / chargement */
.expl-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
  color: #999;
  font-size: .9rem;
  text-align: center;
  grid-column: 1 / -1;
}
.expl-loader i { font-size: 1.6rem; margin-bottom: .6rem; color: #ccc; }

.expl-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
  color: #999;
  grid-column: 1 / -1;
}
.expl-empty i { font-size: 2.4rem; margin-bottom: .75rem; color: #ddd; }
.expl-empty strong { display: block; font-size: 1rem; color: #666; margin-bottom: .3rem; }

/* État d'accueil — notice d'utilisation */
.expl-welcome-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  grid-column: 1 / -1;
  width: 100%;
  padding: 1.5rem 2rem;
  text-align: center;
  box-sizing: border-box;
}
.expl-ws-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 1.5rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.expl-ws-title i { color: #e67e22; }

.expl-ws-steps {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  width: 100%;
  max-width: 480px;
  margin-bottom: 2rem;
  text-align: left;
}
.expl-ws-step {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
}
.expl-ws-num {
  flex-shrink: 0;
  width: 1.7rem;
  height: 1.7rem;
  background: #2c3e50;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  margin-top: .1rem;
}
.expl-ws-step strong {
  display: block;
  font-size: .9rem;
  color: #2c3e50;
  margin-bottom: .15rem;
}
.expl-ws-step span {
  font-size: .82rem;
  color: #6b7280;
  line-height: 1.5;
}
.expl-ws-hint {
  font-size: .85rem;
  color: #999;
  margin: 0 0 .75rem;
}
.expl-ws-cats {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: center;
}
.expl-ws-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  padding: .75rem 1rem;
  background: #f5f6f8;
  border: 1.5px solid #e0e3e8;
  border-radius: 10px;
  font-size: .8rem;
  font-weight: 600;
  color: #4b5563;
  min-width: 80px;
  cursor: pointer;
  transition: all .15s;
}
.expl-ws-cat i { font-size: 1.3rem; color: #2c3e50; }
.expl-ws-cat:hover { background: #2c3e50; border-color: #2c3e50; color: #fff; }
.expl-ws-cat:hover i { color: #fff; }

.expl-welcome { text-align: center; padding: 4rem 2rem 2rem; color: #aaa; }
.expl-welcome i { font-size: 3rem; margin-bottom: 1rem; display: block; color: #ddd; }
.expl-welcome h3 { font-size: 1.1rem; color: #555; margin-bottom: .5rem; }
.expl-welcome p  { font-size: .9rem; line-height: 1.6; }

/* ── Popup carte mini-card ── */
.expl-popup .leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
}
.expl-popup .leaflet-popup-content { margin: 0; width: auto !important; }
.expl-popup .leaflet-popup-tip-container { display: none; }

.expl-popup-card {
  display: flex;
  flex-direction: column;
  width: 220px;
}
.expl-popup-img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}
.expl-popup-ph {
  display: flex;
  align-items: center;
  justify-content: center;
}
.expl-popup-body {
  padding: .6rem .75rem .7rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.expl-popup-label {
  font-size: .88rem;
  font-weight: 700;
  color: #2c3e50;
  text-decoration: none;
  line-height: 1.3;
}
.expl-popup-label:hover { color: #e67e22; }
.expl-popup-meta {
  display: flex;
  gap: .5rem;
  font-size: .75rem;
  color: #888;
  flex-wrap: wrap;
}
.expl-popup-meta i { font-size: .7rem; }
.expl-popup-prix {
  font-size: .72rem;
  font-weight: 600;
  padding: .15rem .4rem;
  border-radius: 4px;
  align-self: flex-start;
}
.expl-popup-prix--gratuit { background: #e8f8f0; color: #27ae60; }
.expl-popup-prix--payant  { background: #fef3e2; color: #e67e22; }

/* Pagination */
.expl-pagination {
  display: flex;
  justify-content: center;
  gap: .5rem;
  padding: 1.25rem 1rem 0;
  flex-wrap: wrap;
}
.expl-page-btn {
  padding: .45rem .9rem;
  border-radius: 8px;
  border: 1.5px solid #ddd;
  background: #fff;
  font-size: .88rem;
  cursor: pointer;
  transition: all .15s;
}
.expl-page-btn:hover { border-color: #2c3e50; color: #2c3e50; }
.expl-page-btn.active { background: #2c3e50; color: #fff; border-color: #2c3e50; }

/* ── Bottom sheet (mobile) ── */
.expl-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 800;
}
.expl-overlay.open { display: block; }

.expl-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  z-index: 900;
  transform: translateY(100%);
  transition: transform .3s ease;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.expl-sheet.open { transform: translateY(0); }

.expl-sheet-handle {
  width: 40px;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
  margin: .75rem auto .5rem;
}
.expl-sheet-body { padding: .5rem 1.25rem 1.25rem; }
.expl-sheet-label {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #888;
  margin-bottom: .4rem;
}
.expl-sheet-cats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .3rem;
  margin-bottom: .25rem;
}
/* Ligne 1 : 3 pills × 2 colonnes chacune */
.expl-sheet-cats .expl-pill:nth-child(1),
.expl-sheet-cats .expl-pill:nth-child(2),
.expl-sheet-cats .expl-pill:nth-child(3) { grid-column: span 2; }
/* Ligne 2 : 2 pills centrées × 2 colonnes, avec 1 col de marge chaque côté */
.expl-sheet-cats .expl-pill:nth-child(4) { grid-column: 2 / span 2; }
.expl-sheet-cats .expl-pill:nth-child(5) { grid-column: 4 / span 2; }

.expl-sheet-cats .expl-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  padding: .35rem .4rem;
  border-radius: 99px;
  background: #f5f6f7;
  border: 1.5px solid #e0e0e0;
  font-size: .8rem;
  font-weight: 600;
  color: #555;
  white-space: nowrap;
}
.expl-sheet-cats .expl-pill i { font-size: .78rem; }
/* Couleurs actives par catégorie */
.expl-sheet-cats .expl-pill[data-cat="manifestation"].active { background: #3498db; border-color: #3498db; color: #fff; }
.expl-sheet-cats .expl-pill[data-cat="activite"].active      { background: #27ae60; border-color: #27ae60; color: #fff; }
.expl-sheet-cats .expl-pill[data-cat="hebergement"].active   { background: #e67e22; border-color: #e67e22; color: #fff; }
.expl-sheet-cats .expl-pill[data-cat="restaurant"].active    { background: #8e44ad; border-color: #8e44ad; color: #fff; }
.expl-sheet-cats .expl-pill[data-cat="itineraire"].active    { background: #555;    border-color: #555;    color: #fff; }

.expl-sheet-body .expl-field-wrap {
  background: #f5f6f8;
  border-radius: 10px;
  padding: .05rem 0;
}
.expl-sheet-body .expl-input { padding: .7rem .75rem .7rem 2.4rem; }

.expl-sheet-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  margin-top: 1.25rem;
  padding: .85rem;
  background: #2c3e50;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.expl-sheet-submit:hover { background: #1a252f; }

/* Bouton Filtres dans la barre compacte */
.expl-bar-filters-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .5rem .9rem;
  background: #fff;
  border: 1.5px solid #ddd;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  color: #2c3e50;
  cursor: pointer;
  white-space: nowrap;
}
.expl-bar-filters-btn i { font-size: .78rem; }

/* Onglets du sheet */
.expl-sheet-tabs {
  display: flex;
  border-bottom: 1px solid #eee;
  padding: 0 1rem;
  margin-bottom: .25rem;
}
.expl-sheet-tab {
  flex: 1;
  padding: .55rem .5rem;
  border: none;
  background: none;
  font-size: .85rem;
  font-weight: 600;
  color: #aaa;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
}
.expl-sheet-tab--active { color: #2c3e50; border-bottom-color: #2c3e50; }

/* Panel filtres mobile */
.expl-sheet-panel-hidden { display: none !important; }
#expl-sheet-panel-filters { overflow-y: auto; max-height: 62vh; }

/* ── Tablet (768px+) : desktop bar + 2 colonnes ── */
@media (min-width: 768px) {
  .expl-bar-compact { display: none; }
  .expl-desktop-bar { display: flex; }

  .expl-body {
    display: flex;
    align-items: flex-start;
  }

  .expl-col-results {
    flex: 0 0 55%;
    max-width: 55%;
    overflow-y: auto;
  }

  .expl-col-map,
  .expl-col-map.open {
    flex: 0 0 45%;
    max-width: 45%;
    height: calc(100vh - var(--expl-topbar-h, 180px));
    position: sticky;
    top: var(--expl-topbar-h, 180px);
    overflow: hidden;
    transition: none;
  }

  .expl-map-toggle--mob { display: none !important; }
  /* Bouton toggle topbar : visible à partir de 768px (priorité sur la règle de base) */
  .expl-map-toggle { display: flex !important; }

  .expl-results-section { padding: .75rem 0 3rem; }

  .expl-card-img,
  .expl-card-img-placeholder { width: 115px; min-width: 115px; height: 110px; }

  .expl-l3-quoi { width: 340px; min-width: 340px; max-width: 340px; }
}

/* Bouton toggle carte — dans la topbar sticky (desktop uniquement) */
.expl-map-toggle {
  display: none;
  align-items: center;
  gap: .4rem;
  padding: .4rem .85rem;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: 20px;
  color: #fff;
  font-size: .83rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s;
  flex-shrink: 0;
}
.expl-map-toggle:hover { background: rgba(255,255,255,.25); border-color: rgba(255,255,255,.6); }
.expl-map-toggle.active { background: #fff; border-color: #fff; color: #2c3e50; }

/* ── Desktop (1024px+) : 3 colonnes avec panneau filtre ── */
@media (min-width: 1024px) {
  /* Vue grille (map masquée) */
  .expl-body.map-hidden .expl-col-map { display: none; }
  .expl-body.map-hidden .expl-col-results { flex: 1; max-width: none; }
  .expl-body.map-hidden .expl-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
  }

  .expl-topbar { padding: .75rem 1.5rem; }

  .expl-col-filters {
    display: block;
    flex: 0 0 240px;
    min-width: 240px;
    max-width: 240px;
    height: calc(100vh - var(--expl-topbar-h, 180px));
    position: sticky;
    top: var(--expl-topbar-h, 180px);
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e8ecef;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    margin: .75rem 0 .75rem .75rem;
  }

  .expl-col-results {
    flex: 1;
    min-width: 0;
    max-width: none;
  }

  .expl-col-map,
  .expl-col-map.open {
    flex: 0 0 42%;
    max-width: 42%;
  }

  .expl-l3-quoi { width: 440px; min-width: 440px; max-width: 440px; }
}

/* ── Wide (1280px+) ── */
@media (min-width: 1280px) {
  .expl-topbar { padding: .8rem 2rem; }

  .expl-col-filters { flex: 0 0 240px; min-width: 240px; max-width: 240px; }

  .expl-col-map,
  .expl-col-map.open { flex: 0 0 44%; max-width: 44%; }

  /* 4 colonnes sans carte, 2 colonnes avec carte */
  .expl-body.map-hidden .expl-list { grid-template-columns: repeat(4, 1fr); }
  .expl-body:not(.map-hidden) .expl-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
  }
}
