/* ============================================================================
 * Azzkara — Nos points de vente (port fidèle de preview/src/styles.css l.687–729,
 * .stores-pager* l.843–849, responsive l.1023–1027).
 *
 * Utilise les variables GLOBALES du thème (--line, --line-2, --red, --ink-2, --ink-3,
 * --muted, --muted-2, --silver, --font-ui…). Tout est scopé sous .stores-loc (le bloc
 * rendu par le widget) pour éviter toute collision. La carte Leaflet remplace l'iframe
 * uMap du proto : .stores-map__canvas porte la hauteur (440px desktop / 320px mobile).
 * ========================================================================== */

/* —————————————————— Barre de filtres : chips pays + recherche —————————————————— */
.stores-loc .stores-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.stores-loc .stores-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.stores-loc .stores-chips button { background: var(--ink-3); border: 1px solid var(--line); color: var(--muted); font-size: 12px; letter-spacing: .04em; padding: 8px 16px; font-family: var(--font-ui); cursor: pointer; transition: .15s; }
.stores-loc .stores-chips button:hover { color: #fff; border-color: var(--line-2); }
.stores-loc .stores-chips button.on { background: var(--red); border-color: var(--red); color: #fff; }
.stores-loc .stores-search { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--ink-3); padding: 0 14px; min-width: 280px; flex: 1; max-width: 360px; }
.stores-loc .stores-search svg { color: var(--muted); width: 16px; height: 16px; flex: 0 0 auto; }
.stores-loc .stores-search input { flex: 1; background: none; border: 0; color: #fff; font-family: var(--font-ui); font-size: 13px; padding: 12px 0; outline: none; }
.stores-loc .stores-search input::placeholder { color: var(--muted-2); }

/* —————————————————— Compteur —————————————————— */
.stores-loc .stores-count { color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }

/* —————————————————— Layout DESKTOP : grille (barre + compteur pleine largeur, puis liste | carte) ——————————————————
   La carte est dans .stores-head (pour pouvoir être sticky en mobile). En desktop, .stores-head:display:contents
   « éclate » ses enfants dans la grille de .stores-loc, replacés par grid-areas → liste à gauche, carte à droite. */
.stores-loc { display: grid; grid-template-columns: 37% 1fr; grid-template-areas: "bar bar" "count count" "list map"; column-gap: 16px; }
.stores-loc .stores-head { display: contents; }
.stores-loc .stores-bar { grid-area: bar; }
.stores-loc .stores-count { grid-area: count; }
.stores-loc .stores-list { grid-area: list; height: 440px; overflow-y: auto; padding-right: 6px; }
.stores-loc .stores-list::-webkit-scrollbar { width: 8px; }
.stores-loc .stores-list::-webkit-scrollbar-track { background: transparent; }
.stores-loc .stores-list::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: var(--rounded, 6px); }
.stores-loc .stores-list .store { margin-bottom: 12px; }
.stores-loc .stores-empty { color: var(--muted); font-size: 15px; text-align: center; padding: 40px 0; }

.stores-loc .store { border: 1px solid var(--line); background: var(--ink-2); padding: 22px 24px; display: flex; flex-direction: column; }
/* Le JS masque les fiches hors filtre/page via [hidden] : forcer display:none (sinon
   .store{display:flex}, de spécificité supérieure, l'emporte et les garde visibles). */
.stores-loc [data-azzst-item][hidden] { display: none !important; }
.stores-loc .store:hover { border-color: var(--line-2); }
.stores-loc .store__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.stores-loc .store__head h3 { font-size: 17px; color: #fff; margin: 0 0 4px; line-height: 1.25; }
.stores-loc .store__country { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.stores-loc .store__gammes { display: flex; flex-direction: column; gap: 4px; flex: 0 0 auto; }
.stores-loc .store__gammes span { font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-2); padding: 2px 7px; text-align: center; }
.stores-loc .store__addr { display: flex; gap: 10px; margin-top: 16px; color: var(--silver); }
.stores-loc .store__addr svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 2px; color: var(--muted); }
.stores-loc .store__addr p { margin: 0; font-size: 13.5px; line-height: 1.5; }
.stores-loc .store__tel { display: flex; align-items: center; gap: 9px; margin-top: 12px; color: #fff; font-size: 13.5px; text-decoration: none; }
.stores-loc .store__tel svg { width: 15px; height: 15px; color: var(--red); }
.stores-loc .store__tel:hover { color: var(--red); }
.stores-loc .store__hours-t { display: flex; align-items: center; justify-content: space-between; width: 100%; background: none; border: 0; border-top: 1px solid var(--line); margin-top: 16px; padding: 13px 0 0; color: var(--muted); font-family: var(--font-ui); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.stores-loc .store__hours-t:hover { color: #fff; }
.stores-loc .store__chev { display: inline-flex; color: var(--muted); }
.stores-loc .store__hours-t.on .store__chev { color: var(--red); }
/* Bascule des icônes +/− selon l'état déplié (le proto échange <Icon.plus>/<Icon.minus>). */
.stores-loc .store__chev-minus { display: none; }
.stores-loc .store__hours-t.on .store__chev-plus { display: none; }
.stores-loc .store__hours-t.on .store__chev-minus { display: inline; }
.stores-loc .store__hours { padding-top: 12px; }
.stores-loc .store__hrow { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 12.5px; color: var(--silver); border-bottom: 1px solid rgba(255,255,255,.04); }
.stores-loc .store__hrow span:first-child { color: var(--muted); width: 42px; flex: 0 0 auto; }
.stores-loc .store__hrow span:last-child { text-align: right; }
.stores-loc .store__hrow.is-closed span:last-child { color: var(--muted-2); }
.stores-loc .store__hrow.is-today { color: #fff; }
.stores-loc .store__hrow.is-today span:first-child { color: var(--red); }
.stores-loc .store__links { display: flex; gap: 8px; margin-top: 16px; }
.stores-loc .store__links a { width: 34px; height: 34px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--silver); transition: .15s; }
.stores-loc .store__links a:hover { border-color: var(--red); color: #fff; }
.stores-loc .store__links svg { width: 15px; height: 15px; }

/* —————————————————— Carte Leaflet (colonne droite, remplace l'iframe uMap du proto) —————————————————— */
.stores-loc .stores-map { grid-area: map; min-width: 0; border: 1px solid var(--line); }
.stores-loc .stores-map__canvas { display: block; width: 100%; height: 440px; background: #0c0c0e; z-index: 0; }

/* Épingle SVG (DivIcon) — pas de fond/contour Leaflet par défaut. */
.azzst-pin { background: none; border: 0; }
.azzst-pin svg { display: block; filter: drop-shadow(0 2px 3px rgba(0,0,0,.45)); }

/* Popup : aligné au look sombre de la marque. */
.azzst-pop { font-family: var(--font-ui); min-width: 160px; }
.azzst-pop strong { display: block; font-size: 13.5px; color: #16161a; margin-bottom: 4px; }
.azzst-pop span { display: block; font-size: 12px; color: #444; line-height: 1.45; }
.azzst-pop a { display: inline-block; margin-top: 6px; font-size: 12.5px; color: var(--red); text-decoration: none; }
.azzst-pop a:hover { text-decoration: underline; }
.leaflet-popup-content { margin: 12px 14px; }

/* —————————————————— Responsive —————————————————— */
/* Tablette/mobile : la carte passe AU-DESSUS, la liste défile avec la page (plus de scroll interne). */
@media (max-width: 900px) {
  /* Mobile/tablette : on dégrille ; l'en-tête (filtres + recherche + carte) devient STICKY (calé sous
     le header sticky du site, ~58px), et la liste des fiches défile dessous (scroll de page). */
  .stores-loc { display: block; }
  .stores-loc .stores-head { display: block; position: sticky; top: 66px; z-index: 20; background: var(--ink); padding: 14px 0 12px; }
  .stores-loc .stores-list { height: auto; overflow: visible; padding-right: 0; }
  .stores-loc .stores-map__canvas { height: 280px; }
}
@media (max-width: 680px) {
  .stores-loc .stores-bar { flex-direction: column; align-items: stretch; }
  .stores-loc .stores-search { max-width: 100%; }
  .stores-loc .stores-map__canvas { height: 240px; }
  /* Chips pays : une seule ligne qui défile horizontalement EN INTERNE (sans faire déborder la page).
     min-width:0 + max-width:100% empêchent le flex-item de grandir à la largeur de son contenu. */
  .stores-loc .stores-chips { flex-wrap: nowrap; overflow-x: auto; min-width: 0; max-width: 100%; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
  .stores-loc .stores-chips::-webkit-scrollbar { display: none; }
  .stores-loc .stores-chips button { flex: 0 0 auto; }
}

/* Arrondi global (piloté par --rounded du thème ; fallback 6px).
   Chips pays, champ de recherche, cartes boutique, et le canevas de carte
   (overflow pour clipper les tuiles Leaflet aux coins). */
.stores-loc .stores-chips button,
.stores-loc .stores-search,
.stores-loc .store { border-radius: var(--rounded, 6px); }
.stores-loc .stores-map__canvas { border-radius: var(--rounded, 6px); overflow: hidden; }
