/* ============================================================
   AlterShops — Storefinder (page « Nos magasins »)
   Refonte design Claude Design (handoff storelocator-as).
   Lot E.1 Sitewide V1 : tokens harmonisés sur design system Lot B
   (--as-amaranth / --as-grey-100..900 / --as-font-family) +
   grid densifié 3-cols desktop + interactions card↔pin Lot B.
   Scope : .as-finder
   ============================================================ */

.as-finder {
  background: var(--as-grey-100, #EDEDF3);
  font-family: var(--as-font-family, 'Brockmann', sans-serif);
  color: var(--as-grey-900, #0F0F0F);
  padding: 16px 32px 56px;
}

/* ---------- HERO ---------- */
.as-finder__hero { padding: 24px 0 28px; }
.as-finder__h1 {
  font-size: 36px; font-weight: 500;
  margin: 0 0 8px;
  letter-spacing: 0.05em;
  text-transform: none;
  line-height: 1.15;
  color: var(--as-grey-900, #0F0F0F);
}
.as-finder__h1-accent { color: var(--as-amaranth, #E62249); }
.as-finder__sub {
  font-size: 16px;
  color: var(--as-grey-500, #353535);
  margin: 0;
}

/* ---------- TOOLBAR ---------- */
.as-finder__toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--as-grey-200, #DDE1E3);
  border-radius: 8px;
  padding: 14px 16px;
  position: sticky; top: 12px; z-index: 50;
  box-shadow: 0 2px 12px rgba(15, 15, 15, 0.04);
}

.as-finder__search {
  flex: 1; min-width: 280px; position: relative;
  display: flex; align-items: center; gap: 10px;
  background: var(--as-grey-100, #EDEDF3);
  border-radius: 3px;
  padding: 10px 14px;
}
.as-finder__search > svg {
  width: 18px; height: 18px;
  color: var(--as-grey-300, #777); flex-shrink: 0;
}
.as-finder__search input {
  border: 0; outline: 0; background: transparent;
  flex: 1; min-width: 0;
  font: 400 14px/1.2 var(--as-font-family, 'Brockmann', sans-serif);
  color: var(--as-grey-900, #0F0F0F);
}
.as-finder__search input::placeholder { color: var(--as-grey-300, #777); }

.as-finder__autocomplete {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--as-grey-200, #DDE1E3);
  border-radius: 3px;
  box-shadow: 0 12px 40px rgba(15, 15, 15, 0.12);
  z-index: 100; overflow: hidden;
  max-height: 320px; overflow-y: auto;
}
.as-finder__autocomplete[hidden] { display: none; }
.as-finder__autocomplete-item {
  padding: 10px 14px; font-size: 14px;
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
  transition: background 0.18s ease;
  user-select: none;
}
.as-finder__autocomplete-item:hover,
.as-finder__autocomplete-item.is-active {
  background: var(--as-grey-100, #EDEDF3);
}
.as-finder__autocomplete-item svg {
  width: 14px; height: 14px;
  color: var(--as-amaranth, #E62249); flex-shrink: 0;
}

.as-finder__btn-ghost {
  background: #fff;
  color: var(--as-grey-900, #0F0F0F);
  border: 1px solid var(--as-grey-200, #DDE1E3);
  border-radius: 3px;
  padding: 9px 14px;
  font-size: 13px; font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.as-finder__btn-ghost:hover { background: var(--as-grey-900, #0F0F0F); color: #fff; border-color: var(--as-grey-900, #0F0F0F); }
.as-finder__btn-ghost:hover svg { stroke: #fff; }
.as-finder__btn-ghost svg { width: 14px; height: 14px; flex-shrink: 0; }

.as-finder__geo-spinner {
  display: none;
  width: 14px; height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: as-finder-spin 0.9s linear infinite;
}
.as-finder__geo.is-loading .as-finder__geo-icon { display: none; }
.as-finder__geo.is-loading .as-finder__geo-spinner { display: inline-block; }
@keyframes as-finder-spin { to { transform: rotate(360deg); } }

.as-finder__divider {
  width: 1px; height: 28px;
  background: var(--as-grey-200, #DDE1E3);
}

.as-finder__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.as-finder__chip {
  background: var(--as-grey-100, #EDEDF3);
  color: var(--as-grey-900, #0F0F0F);
  border: 1px solid transparent;
  padding: 8px 14px;
  border-radius: 3px;
  font-size: 13px; font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.as-finder__chip.is-on { background: var(--as-grey-900, #0F0F0F); color: #fff; }
.as-finder__chip:hover:not(.is-on) { background: #e3e3eb; }

.as-finder__flag {
  display: inline-block; width: 18px; height: 12px;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  vertical-align: -1px;
}
.as-finder__flag--fr { background: linear-gradient(90deg, #002395 0 33.3%, #fff 33.3% 66.6%, #ED2939 66.6%); }
.as-finder__flag--be { background: linear-gradient(90deg, #000 0 33.3%, #FAE042 33.3% 66.6%, #ED2939 66.6%); }
.as-finder__flag--ch { background: #DA291C; position: relative; }
.as-finder__flag--ch::before,
.as-finder__flag--ch::after {
  content: ''; position: absolute; background: #fff;
}
.as-finder__flag--ch::before { left: 50%; top: 25%; width: 2px; height: 50%; transform: translateX(-50%); }
.as-finder__flag--ch::after  { top: 50%; left: 25%; height: 2px; width: 50%; transform: translateY(-50%); }
.as-finder__flag--lu { background: linear-gradient(180deg, #ED2939 0 33%, #fff 33% 66%, #00A1DE 66%); }

.as-finder__select {
  background: var(--as-grey-100, #EDEDF3);
  border: 0; border-radius: 3px;
  padding: 8px 32px 8px 12px;
  font-size: 13px; font-weight: 500;
  font-family: inherit;
  color: var(--as-grey-900, #0F0F0F);
  cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%230F0F0F' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  max-width: 180px;
}

.as-finder__toggle {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500;
  cursor: pointer; user-select: none;
}
.as-finder__toggle input { display: none; }
.as-finder__toggle-slider {
  width: 32px; height: 18px;
  background: var(--as-grey-200, #DDE1E3);
  border-radius: 999px;
  position: relative;
  transition: background 0.18s ease;
}
.as-finder__toggle-slider::before {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.18s ease;
}
.as-finder__toggle input:checked + .as-finder__toggle-slider {
  background: var(--as-amaranth, #E62249);
}
.as-finder__toggle input:checked + .as-finder__toggle-slider::before {
  transform: translateX(14px);
}

/* ---------- RESULTS BAR ---------- */
.as-finder__results-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 4px; font-size: 14px;
  gap: 12px; flex-wrap: wrap;
}
.as-finder__results-text { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.as-finder__results-text strong { font-weight: 500; }
.as-finder__results-pills { color: var(--as-grey-300, #777); display: inline-flex; gap: 6px; flex-wrap: wrap; }
.as-finder__reset {
  background: transparent; border: 0;
  color: var(--as-amaranth, #E62249);
  cursor: pointer;
  font-size: 13px; font-weight: 500; font-family: inherit;
  padding: 4px 8px;
}
.as-finder__reset:hover { text-decoration: underline; }

/* ---------- CONTENT (split list + map) ---------- */
.as-finder__content {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.4fr) minmax(380px, 1fr);
  align-items: start;
}
.as-finder__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
  max-height: 1200px; overflow-y: auto;
  padding-right: 6px;
}
.as-finder__list::-webkit-scrollbar { width: 6px; }
.as-finder__list::-webkit-scrollbar-thumb { background: var(--as-grey-200, #DDE1E3); border-radius: 3px; }
.as-finder__list > * { min-width: 0; }

.as-finder__empty {
  grid-column: 1 / -1;
  text-align: center; padding: 56px 24px;
  background: #fff;
  border: 1px solid var(--as-grey-200, #DDE1E3);
  border-radius: 8px;
  color: var(--as-grey-300, #777);
}
.as-finder__empty svg { width: 64px; height: 64px; color: var(--as-grey-300, #777); }
.as-finder__empty h3 { font-size: 20px; margin: 16px 0 6px; color: var(--as-grey-900, #0F0F0F); font-weight: 500; }
.as-finder__empty p { color: var(--as-grey-300, #777); margin: 0; }
.as-finder__empty[hidden] { display: none; }

.as-finder__map-col {
  position: sticky; top: 88px;
  height: 720px;
}
.as-finder__map-wrap { position: relative; width: 100%; height: 100%; }
.as-finder__map {
  width: 100%; height: 100%;
  border: 1px solid var(--as-grey-200, #DDE1E3);
  border-radius: 8px;
  overflow: hidden;
  background: #f0eee8;
}

.as-finder__legend {
  position: absolute; bottom: 16px; left: 16px;
  z-index: 5;
  background: #fff;
  border-radius: 3px;
  padding: 10px 14px;
  display: flex; flex-direction: column; gap: 6px;
  font-size: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.as-finder__legend-row { display: flex; align-items: center; gap: 8px; }
.as-finder__legend-row[hidden] { display: none; }
.as-finder__dot {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 50%;
}
.as-finder__dot--open   { background: #16A34A; }
.as-finder__dot--closed { background: var(--as-grey-300, #777); }
.as-finder__dot--me     { background: var(--as-amaranth, #E62249); }

/* ---------- STORE CARD (rendu JS) ---------- */
.as-card {
  background: #fff;
  border: 1px solid var(--as-grey-200, #DDE1E3);
  border-radius: 8px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.as-card:hover { border-color: var(--as-grey-900, #0F0F0F); }
.as-card.is-active {
  border-color: var(--as-amaranth, #E62249);
  box-shadow: 0 4px 20px rgba(230, 34, 73, 0.12);
}

.as-card__photo {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #3a3530, #1a1715);
  overflow: hidden;
}
.as-card__photo img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.as-card__photo-fallback {
  position: absolute; inset: 0;
  display: grid; place-items: center;
}
.as-card__photo-sign {
  font-weight: 600; letter-spacing: 2px; font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center; line-height: 1.2;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 14px;
}
.as-card__dist {
  position: absolute; top: 12px; right: 12px;
  background: rgba(15, 15, 15, 0.85);
  color: #fff;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.03em;
}

.as-card__body {
  padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
}

.as-card__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px;
}
.as-card__title {
  font-size: 17px; font-weight: 500;
  margin: 0; line-height: 1.25;
  color: var(--as-grey-900, #0F0F0F);
}
.as-card__title a { color: inherit; text-decoration: none; }
.as-card__title a:hover { color: var(--as-amaranth, #E62249); }

.as-card__rating {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px;
  flex-shrink: 0;
}
.as-card__rating-google { width: 13px; height: 13px; flex-shrink: 0; margin-right: 2px; }
.as-card__stars { display: inline-flex; gap: 1px; }
.as-card__stars svg { width: 12px; height: 12px; }
.as-card__rating strong { font-weight: 500; }
.as-card__rating .muted { color: var(--as-grey-300, #777); }

.as-card__addr {
  font-size: 14px;
  color: var(--as-grey-500, #353535);
  line-height: 1.4;
}

.as-card__row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13px;
  color: var(--as-grey-500, #353535);
}
.as-card__row .is-open {
  color: #16A34A; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
}
.as-card__row .is-closed {
  color: var(--as-grey-300, #777); font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
}
.as-card__row .muted { color: var(--as-grey-300, #777); }
.as-card__phone {
  color: var(--as-grey-900, #0F0F0F);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  text-decoration: none;
}
.as-card__phone:hover,
.as-card__phone:focus-visible { color: var(--as-amaranth, #E62249); text-decoration: underline; }
.as-card__phone:focus-visible {
  outline: var(--as-focus-ring, 2px solid var(--as-amaranth, #E62249));
  outline-offset: 2px;
  border-radius: 2px;
}

.as-card__svc { display: flex; flex-wrap: wrap; gap: 6px; }
.as-card__badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--as-grey-100, #EDEDF3);
  color: var(--as-grey-900, #0F0F0F);
  padding: 4px 9px;
  border-radius: 3px;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.as-card__badge svg { width: 12px; height: 12px; color: var(--as-amaranth, #E62249); flex-shrink: 0; }
.as-card__badge-letter {
  width: 14px; height: 14px;
  border-radius: 2px;
  background: var(--as-amaranth, #E62249);
  color: #fff;
  display: grid; place-items: center;
  font-size: 9px; font-weight: 700;
}

/* Métro (réutilise les pastilles SVG du module) */
.as-card__metro {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 12px;
  color: var(--as-grey-500, #353535);
  padding-top: 2px;
}
.as-card__metro-icon {
  width: 14px; height: 14px;
  color: var(--as-grey-300, #777);
  flex-shrink: 0;
}
.as-card__metro-stop {
  display: inline-flex; align-items: center; gap: 5px;
}
.as-line {
  display: inline-grid; place-items: center;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 50%;
  font-size: 11px; font-weight: 700;
  color: #fff; line-height: 1;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
  font-family: var(--as-font-family, 'Brockmann', sans-serif);
}
.as-line--rer {
  border-radius: 4px; padding: 0 6px;
  min-width: 26px;
}
.as-line img { width: 18px; height: 18px; display: block; }

.as-card__actions {
  display: flex; gap: 6px;
  margin-top: auto; padding-top: 4px;
}
.as-card__btn-ghost,
.as-card__btn-primary {
  flex: 1;
  padding: 9px 10px;
  font-size: 12px; font-weight: 500;
  font-family: inherit;
  border-radius: 3px;
  border: 1px solid var(--as-grey-200, #DDE1E3);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; white-space: nowrap;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.as-card__btn-ghost {
  background: #fff;
  color: var(--as-grey-900, #0F0F0F);
}
.as-card__btn-ghost:hover {
  background: var(--as-grey-900, #0F0F0F); color: #fff; border-color: var(--as-grey-900, #0F0F0F);
  text-decoration: none;
}
.as-card__btn-ghost:hover svg { stroke: #fff; }
.as-card__btn-primary {
  background: var(--as-amaranth, #E62249);
  color: #fff;
  border-color: var(--as-amaranth, #E62249);
}
.as-card__btn-primary:hover {
  background: var(--as-amaranth-hover, #C51F41);
  border-color: var(--as-amaranth-hover, #C51F41);
  color: #fff;
  text-decoration: none;
}
.as-card__btn-ghost svg,
.as-card__btn-primary svg { width: 13px; height: 13px; flex-shrink: 0; }
.as-card__btn-ghost:focus-visible,
.as-card__btn-primary:focus-visible {
  outline: var(--as-focus-ring, 2px solid var(--as-amaranth, #E62249));
  outline-offset: 2px;
}

/* ---------- MAP MARKERS (custom MapLibre HTML elements) ---------- */
.as-finder-marker {
  width: 32px; height: 32px;
  background: var(--as-grey-900, #0F0F0F);
  color: #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg) translateY(-2px);
  display: grid; place-items: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transform-origin: center bottom;
  transition: background 0.18s ease, transform 0.18s ease;
}
.as-finder-marker__inner {
  transform: rotate(45deg);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.5px; color: #fff;
  font-family: var(--as-font-family, 'Brockmann', sans-serif);
}
.as-finder-marker:hover,
.as-finder-marker.is-active {
  background: var(--as-amaranth, #E62249);
  transform: rotate(-45deg) translateY(-2px) scale(1.15);
}
.as-finder-marker.is-closed { opacity: 0.6; }

.as-finder-user-marker {
  width: 18px; height: 18px;
  background: var(--as-amaranth, #E62249);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(230, 34, 73, 0.25);
}

/* MapLibre popup themed */
.maplibregl-popup-content {
  border-radius: 8px !important;
  padding: 0 !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18) !important;
  font-family: var(--as-font-family, 'Brockmann', sans-serif);
}

/* MapLibre attribution polish — preserved per OSM/OpenFreeMap licence.
   Discret, lisible, tokens Lot B. Restyle local (scoped à la map du finder
   pour éviter de toucher la mini-map de la fiche store / homepage). */
.as-finder__map .maplibregl-ctrl-attrib,
.as-finder__map .maplibregl-ctrl-attrib.maplibregl-compact {
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--as-radius-small, 3px);
  font-size: 10px;
  font-family: var(--as-font-family, 'Brockmann', sans-serif);
  letter-spacing: 0.02em;
}
.as-finder__map .maplibregl-ctrl-attrib-inner,
.as-finder__map .maplibregl-ctrl-attrib-inner a {
  color: var(--as-grey-500, #353535);
}
.as-finder__map .maplibregl-ctrl-attrib-inner a:hover {
  color: var(--as-amaranth, #E62249);
}
.as-finder__map .maplibregl-ctrl-attrib-button {
  background-color: rgba(255, 255, 255, 0.85);
}
.as-finder-popup { padding: 14px 16px; min-width: 240px; }
.as-finder-popup h4 {
  margin: 0 0 4px; font-size: 16px; font-weight: 500;
  color: var(--as-grey-900, #0F0F0F);
}
.as-finder-popup .addr {
  font-size: 13px;
  color: var(--as-grey-500, #353535);
  margin-bottom: 8px;
}
.as-finder-popup .row {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; margin-bottom: 10px;
}
.as-finder-popup .as-card__btn-primary {
  width: 100%; padding: 8px; font-size: 12px;
}

/* ---------- MODAL ---------- */
.as-finder__modal {
  position: fixed; inset: 0;
  background: rgba(15, 15, 15, 0.5);
  display: grid; place-items: center;
  z-index: 1000;
  padding: 16px;
  animation: as-finder-fade 0.2s ease;
}
.as-finder__modal[hidden] { display: none; }
@keyframes as-finder-fade { from { opacity: 0; } to { opacity: 1; } }
.as-finder__modal-panel {
  background: #fff;
  border-radius: 8px;
  padding: 32px;
  max-width: 520px; width: 100%;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}
.as-finder__modal-panel h2 {
  margin: 0 0 16px; font-size: 22px; font-weight: 500;
  color: var(--as-grey-900, #0F0F0F);
}
.as-finder__modal-close {
  position: absolute; top: 16px; right: 16px;
  background: transparent; border: 0;
  font-size: 20px; cursor: pointer;
  color: var(--as-grey-300, #777);
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
}
.as-finder__modal-close:hover { background: var(--as-grey-100, #EDEDF3); color: var(--as-grey-900, #0F0F0F); }

/* ---------- noscript fallback ---------- */
.as-finder__noscript { padding: 32px 0; }
.as-finder__noscript details { margin-bottom: 16px; }
.as-finder__noscript summary { font-weight: 500; cursor: pointer; padding: 8px 0; }
.as-finder__noscript ul { padding-left: 20px; }

/* ---------- RESPONSIVE ---------- */
/* Liste : auto-fill 290px → 3 cols ≥1280, 2 cols 870-1279, 1 col <870. */
@media (max-width: 1100px) {
  .as-finder__content { grid-template-columns: 1fr; }
  .as-finder__map-col { position: static; height: 420px; }
  .as-finder__list { max-height: none; }
}
@media (max-width: 768px) {
  .as-finder { padding: 12px 16px 32px; }
  .as-finder__h1 { font-size: 28px; }
  .as-finder__toolbar { gap: 8px; padding: 10px 12px; }
  .as-finder__search { min-width: 100%; order: -1; }
  .as-finder__divider { display: none; }
  .as-finder__select { max-width: none; flex: 1 1 140px; }
  .as-finder__map-col { height: 360px; }
  .as-finder__legend { padding: 8px 10px; font-size: 11px; }
  /* Mobile : promote tel: link to bold amaranth CTA — un appel = un clic. */
  .as-card__phone {
    color: var(--as-amaranth, #E62249);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
  }
}

/* ---------- BO TWEAKS V2 (data-attrs on .as-finder) ---------- */

/* Photos off → hide cover blocks on cards. */
.as-finder[data-photos="0"] .as-card__photo { display: none; }

/* Services off → hide service badges block on cards. */
.as-finder[data-services="0"] .as-card__svc { display: none; }

/* Marker style: red → swap default ink colour for AlterSmoke red.
   Hover/active still scale + (already red) keep the same hue. */
.as-finder[data-marker-style="red"] .as-finder-marker {
  background: var(--as-amaranth, #E62249);
}

/* Density: compact → reduce card padding + gap for higher list density.
   Layout split/stacked + density comfort = default (no override needed). */
.as-finder[data-density="compact"] .as-card { padding: 10px 12px; }
.as-finder[data-density="compact"] .as-card__body { gap: 6px; }
.as-finder[data-density="compact"] .as-finder__list { gap: 8px; }

/* Layout stacked → list takes full width, map drops below at full width.
   On desktop only — mobile is already stacked. */
@media (min-width: 1024px) {
  .as-finder[data-layout="stacked"] .as-finder__content {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
  .as-finder[data-layout="stacked"] .as-finder__map-col {
    position: static;
    height: 480px;
    width: 100%;
  }
  .as-finder[data-layout="stacked"] .as-finder__list { max-height: none; }
}
