/* SUMO V4 · mapa de sucursales (index.html). El mapa vive en un marco de la V4; pines y clusters se dibujan en js/mapa.js. */
.mapa-wrap { margin: 0 0 22px; }
.mapa { position: relative; height: 55vh; min-height: 340px; max-height: 560px; border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; background: var(--paper); }
.mapa .maplibregl-canvas { outline: none; }
.mapa-at { margin-top: 8px; font-size: .78rem; color: var(--ink-soft); line-height: 1.35; }
.mapa-at a { text-underline-offset: 3px; }
.mapa-err { padding: 30px 20px; text-align: center; color: var(--ink-soft); }
.mapa-yo { width: 22px; height: 22px; border-radius: 50%; background: #2F7FD8; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--ink), 0 0 0 10px rgba(47, 127, 216, .25); }
.maplibregl-ctrl-group { border-radius: 14px !important; border: 2px solid var(--ink); box-shadow: none !important; overflow: hidden; }
.maplibregl-ctrl-group button { width: 40px !important; height: 40px !important; }
.maplibregl-ctrl-attrib { font-family: var(--f-body); font-size: 11px; }
.maplibregl-ctrl-attrib.maplibregl-compact { border-radius: 12px; }
.geo-msg { font-size: .94rem; color: var(--ink-soft); font-weight: 600; min-height: 1.3em; }
.suc-d { font-family: var(--f-display); font-stretch: 100%; font-weight: 800; font-size: .86rem; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-ink); }
.suc-m { justify-self: start; font-size: .92rem; padding-top: 4px; }
.suc .suc-m { margin-top: 2px; }
/* Hoja de sucursal */
.suc-dir { font-style: normal; font-size: 1.05rem; line-height: 1.4; color: var(--ink-soft); margin: 4px 0 8px; }
.suc-tel { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; font-size: 1.15rem; text-decoration: none; margin-bottom: 8px; }
.suc-tel:hover { text-decoration: underline; }
.ds-acts { display: grid; gap: 10px; margin-top: 8px; }
.ds-acts .btn { min-height: 56px; font-size: 1.15rem; }
#d-suc .metas { margin: 4px 0 10px; }
@media (min-width: 700px) { .ds-acts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .mapa { height: 520px; } }

.finder-row--pills { justify-content: flex-start; gap: 8px; }
.geo-msg:empty { min-height: 0; }
@media (min-width: 960px) { .finder .geo-msg { grid-column: 1 / -1; } }
.suc-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.suc-links .suc-m { min-height: 44px; display: inline-flex; align-items: center; padding-top: 0; }
.suc-h { text-decoration: none; }
.suc-h:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ds-pag { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; }

/* F3 · lista primero, mapa bajo demanda. El botón "Ver mapa" alterna la vista; el mapa tiene alto fijo desde que se muestra,
   así que MapLibre llega a un espacio ya reservado y la página no se mueve. */
.mapa-wrap { display: none; }
#sucursales.is-mapa .mapa-wrap { display: block; }
#sucursales.is-mapa .suc-secs { display: none; }
.suc-secs:empty { min-height: 520px; }
.mapa-carga { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 20px; text-align: center; font-weight: 700; color: var(--ink-soft); }
.mapa[aria-busy="true"] { background: linear-gradient(100deg, var(--paper) 30%, #fff 50%, var(--paper) 70%) 0 0 / 220% 100%; animation: mapa-brilla 1.4s linear infinite; }
@keyframes mapa-brilla { to { background-position: -220% 0; } }
@media (prefers-reduced-motion: reduce) { .mapa[aria-busy="true"] { animation: none; } }
.cerca { display: grid; gap: 8px; }
.cerca-t { font-size: .92rem; line-height: 1.38; color: var(--ink-soft); max-width: 60ch; }
.pill svg { flex: none; }
.pill--geo[aria-pressed="true"] { background: var(--royal); border-color: var(--royal); color: #fff; }
.pill--vista[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.finder-row--count { justify-content: flex-start; gap: 4px 16px; min-height: 44px; }
.limpiar-f { min-height: 44px; display: inline-flex; align-items: center; font-size: .95rem; }
.limpiar-f[hidden] { display: none; }
@media (min-width: 960px) { .finder .cerca { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 28px; } }
.geo-msg:empty { display: none; }
/* Chips de filtro: en celular una sola fila con scroll horizontal (sin barra, con snap y desvanecido en el borde que indica que hay más).
   Orden: niños, zonas, AYCE, Express. En escritorio se envuelven en varias líneas. */
.chips-wrap { position: relative; min-width: 0; }
.chips-fila { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scroll-behavior: smooth; scroll-padding-inline: 2px; overscroll-behavior-x: contain; scrollbar-width: none; padding: 2px; margin: -2px; --fl: 0px; --fr: 0px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%); }
.chips-fila::-webkit-scrollbar { display: none; }
.chips-zona { display: contents; }
.chips-fila .pill { scroll-snap-align: start; }
@media (prefers-reduced-motion: reduce) { .chips-fila { scroll-behavior: auto; } }
@media (min-width: 960px) {
  .chips-wrap { grid-column: 1 / -1; }
  .chips-fila { flex-wrap: wrap; overflow: visible; scroll-snap-type: none; -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 959px) {
  .finder { gap: 10px; }
  .finder .pill { font-size: .98rem; padding: 0 15px; }
  .cerca-t { font-size: .88rem; }
}
