/* Carson store locator — Figma Store Locator 3083:11007 (Map 3083:11016) */
.carson-stores__page { padding-top: 40px; padding-bottom: 60px; }
.carson-stores__title { margin: 0 0 24px; }

/* Rounded map card with the panel floating on its left edge */
.carson-stores__frame {
  position: relative;
  display: flex;
  align-items: flex-start;
  height: 1009px;
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
}

.carson-stores__map { position: absolute; inset: 0; z-index: 0; }
.carson-stores__map .carson-stores__canvas {
  position: absolute;
  inset: 0;
  background: #e9e8f2 center bottom / cover no-repeat;
}
.carson-stores__canvas.is-ready { background-image: none !important; }
/* Figma tint: rgba(207, 204, 254, 0.25) over the map tiles, under the pins */
.carson-stores__canvas::after,
.carson-stores__canvas .maplibregl-canvas-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(207, 204, 254, 0.25);
  pointer-events: none;
}
.carson-stores__canvas.is-ready::after { content: none; }
.carson-stores__canvas .maplibregl-canvas-container { position: absolute; inset: 0; }
.carson-stores__iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.carson-stores__canvas .maplibregl-ctrl-top-right { top: 6px; right: 6px; }
.carson-stores__canvas .maplibregl-ctrl-group { border-radius: 12px; box-shadow: 0 2px 8px rgba(41, 39, 39, 0.12); }

/* Pins (Figma PinMarker 3083:11267) */
.carson-stores__marker {
  position: relative;
  display: block;
  width: 32px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.28));
  transition: transform 0.2s ease;
}
.carson-stores__marker img { position: absolute; top: 0; left: 50%; display: block; width: 30.48px; height: 40px; max-width: none; transform: translateX(-50%); }
.carson-stores__marker img.carson-stores__marker-dot { top: 6.19px; width: 18.1px; height: 18.1px; }
.carson-stores__marker span {
  position: absolute;
  top: 10.5px;
  left: 0;
  width: 100%;
  color: var(--carson-plum);
  font-family: var(--carson-heading);
  font-weight: 700;
  font-size: 8.57px;
  line-height: 1;
  text-align: center;
}
.carson-stores__marker span.is-long { top: 12.4px; font-size: 6.67px; }
.carson-stores__marker-wrap { width: 32px; height: 40px; }
.carson-stores__marker-wrap.is-active { z-index: 2; }
.carson-stores__marker-wrap.is-active .carson-stores__marker { transform: scale(1.3); transform-origin: 50% 100%; }
.carson-stores__marker:focus-visible { outline: 2px solid var(--carson-plum); outline-offset: 2px; border-radius: 50% 50% 50% 50% / 40%; }

/* Floating column (Figma List Container 3083:11018) */
.carson-stores__side {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 374px;
  height: 100%;
  padding: 14px;
}

/* "Use my location" bar (3083:11019) */
.carson-stores__bar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 12px 22px;
  border-radius: 22px;
  background: var(--carson-bg);
}
.carson-stores__locate {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--carson-dark);
  font-family: var(--carson-link-font);
  font-weight: 500;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0.36px;
  text-align: left;
  cursor: pointer;
}
.carson-stores__locate:disabled { cursor: progress; opacity: 0.7; }
.carson-stores__locate-icon { position: relative; flex: 0 0 36px; width: 36px; height: 36px; }
.carson-stores__locate-icon img { display: block; }
.carson-stores__locate-icon .carson-stores__locate-arrow { position: absolute; top: 8.5px; left: 8.5px; }
.carson-stores__locate-label { text-decoration: underline; text-underline-offset: 2px; text-transform: capitalize; }
.carson-stores__locate:hover .carson-stores__locate-label,
.carson-stores__locate.is-active .carson-stores__locate-label { color: var(--carson-plum); }
.carson-stores__stop {
  flex: 0 0 auto;
  padding: 4px;
  border: 0;
  border-radius: 100px;
  background: var(--carson-lavender);
  cursor: pointer;
}
.carson-stores__stop[hidden] { display: none; }
.carson-stores__stop img { display: block; }
.carson-stores__stop:hover { background: var(--carson-lavender-light); }

/* Panel (3083:11024) */
.carson-stores__panel {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  border-radius: 22px;
  background: var(--carson-bg);
  overflow: hidden;
}
.carson-stores__form { flex: 0 0 auto; padding: 24px 22px 18px; }
.carson-stores__group { margin: 0; padding: 0; border: 0; min-width: 0; }
.carson-stores__label {
  display: block;
  margin: 0;
  padding: 0;
  color: var(--carson-dark);
  font-family: var(--carson-heading);
  font-weight: 500;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: 0.25px;
  text-transform: uppercase;
}
.carson-stores__group > legend.carson-stores__label { float: left; width: 100%; padding-top: 24px; }
.carson-stores__group > legend + * { clear: both; }

.carson-stores__input {
  display: block;
  width: 100%;
  height: 44px;
  margin-top: 8px;
  padding: 0 18px;
  border: 1px solid var(--carson-dark);
  border-radius: 40px;
  background: var(--carson-altern-light);
  color: var(--carson-dark);
  font-family: var(--carson-sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 23px;
  -webkit-appearance: none;
  appearance: none;
}
.carson-stores__input::placeholder { color: var(--carson-muted); opacity: 1; }
.carson-stores__input:focus { outline: none; border-color: var(--carson-plum); box-shadow: 0 0 0 1px var(--carson-plum); }
.carson-stores__input::-webkit-search-cancel-button { cursor: pointer; }

.carson-stores__radius { clear: both; display: flex; gap: 6px; padding-top: 8px; }
.carson-stores__pill {
  flex: 1 1 0;
  min-width: 0;
  height: 30px;
  padding: 0 1px;
  border: 1px solid var(--carson-dark);
  border-radius: 50px;
  background: var(--carson-altern-light);
  color: var(--carson-dark);
  font-family: var(--carson-sans);
  font-weight: 500;
  font-size: 11px;
  line-height: 16.5px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.carson-stores__pill:hover { border-color: var(--carson-plum); color: var(--carson-plum); }
.carson-stores__pill[aria-pressed="true"] { border-color: var(--carson-plum); background: var(--carson-lavender); color: var(--carson-plum); }

.carson-stores__group--filter { position: relative; }
.carson-stores__clear {
  position: absolute;
  top: 24px;
  right: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--carson-plum);
  font-family: var(--carson-heading);
  font-weight: 500;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: 0.25px;
  text-transform: uppercase;
  cursor: pointer;
}
.carson-stores__clear:hover { text-decoration: underline; text-underline-offset: 3px; }
.carson-stores__group--filter > legend.carson-stores__label { padding-right: 90px; }
.carson-stores__chips { clear: both; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; }
.carson-stores__chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  border: 1px solid var(--carson-dark);
  border-radius: 20px;
  background: transparent;
  color: var(--carson-plum);
  font-family: var(--carson-heading);
  font-weight: 700;
  font-size: 10px;
  line-height: 15px;
  letter-spacing: 0.4px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.carson-stores__chip img { display: block; flex: 0 0 8px; }
.carson-stores__chip:hover { border-color: var(--carson-plum); }
.carson-stores__chip[aria-pressed="true"] { border-color: var(--carson-plum); background: var(--carson-lavender); }

.carson-stores__submit {
  display: block;
  width: 100%;
  margin-top: 24px;
  padding: 10px 24px;
  border: 0;
  border-radius: 50px;
  background: var(--carson-lavender);
  color: var(--carson-plum);
  font-family: var(--carson-heading);
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.carson-stores__submit:hover { background: var(--carson-plum); color: var(--carson-bg); }
.carson-stores__submit:disabled { cursor: progress; opacity: 0.75; }

/* Results (3083:11080) */
.carson-stores__results {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  /* Figma fades the last cards into the panel */
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 110px), rgba(0, 0, 0, 0.35));
  mask-image: linear-gradient(to bottom, #000 calc(100% - 110px), rgba(0, 0, 0, 0.35));
}
.carson-stores__summary {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 12px 20px;
  background: #f4e9ed; /* rgba(144,22,85,.08) over --carson-bg, opaque for sticky */
}
.carson-stores__count {
  margin: 0;
  color: var(--carson-dark);
  font-family: var(--carson-heading);
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
  text-transform: uppercase;
}
.carson-stores__meta { margin: 1px 0 0; color: var(--carson-muted); font-size: 11px; line-height: 16.5px; }
.carson-stores__sorted { color: var(--carson-plum); }
.carson-stores__list { margin: 0; padding: 0 0 40px; list-style: none; }
.carson-stores__list:has(+ .carson-stores__empty[hidden] + .carson-stores__more:not([hidden])) { padding-bottom: 16px; }
.carson-stores__more { display: flex; width: calc(100% - 40px); margin: 0 20px 32px; }
.carson-stores__more[hidden] { display: none; }
.carson-stores__empty { margin: 0; padding: 20px; color: var(--carson-muted); font-size: 14px; line-height: 23px; }

/* Store card (3083:11086) */
.carson-store {
  display: flex;
  gap: 12px;
  padding: 16px 20px 17px;
  border-bottom: 1px solid rgba(26, 18, 38, 0.09);
  background: var(--carson-bg);
  cursor: pointer;
  transition: background-color 0.2s;
}
.carson-store[hidden] { display: none; }
.carson-store:hover { background: var(--carson-altern-light); }
.carson-store.is-active { background: #faf3f6; box-shadow: inset 3px 0 0 var(--carson-plum); }
.carson-store__pin { flex: 0 0 20px; align-self: flex-start; width: 20px; height: 26px; margin-top: 1px; }
.carson-store__body { flex: 1; min-width: 0; }
.carson-store__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.carson-store__name { margin: 0; min-width: 0; }
.carson-store__select {
  display: block;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--carson-dark);
  font-family: var(--carson-heading);
  font-weight: 700;
  font-size: 16px;
  line-height: 19.5px;
  letter-spacing: 0;
  text-align: left;
  cursor: pointer;
}
.carson-store__select:hover { color: var(--carson-plum); }
.carson-store__distance {
  flex: 0 0 auto;
  padding: 3px 10px;
  border: 1px solid rgba(144, 22, 85, 0.16);
  border-radius: 20px;
  background: rgba(144, 22, 85, 0.09);
  color: var(--carson-plum);
  font-family: var(--carson-heading);
  font-weight: 700;
  font-size: 10px;
  line-height: 15px;
  letter-spacing: 0.4px;
  white-space: nowrap;
}
.carson-store__distance[hidden] { display: none; }
.carson-store__line { margin: 0; padding-top: 1px; color: var(--carson-muted); font-size: 11px; line-height: 16.5px; }
.carson-store__line:first-of-type { padding-top: 3px; }
.carson-store__links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0; padding-top: 8px; }
.carson-store a.carson-store__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--carson-plum);
  font-size: 11px;
  line-height: 16.5px;
  text-decoration: none;
}
.carson-store a.carson-store__link:hover span { text-decoration: underline; text-underline-offset: 2px; }
.carson-store__link img { display: block; flex: 0 0 10px; }

/* Tablet: shorter card */
@media (max-width: 1199px) {
  .carson-stores__frame { height: 860px; }
  .carson-stores__side { width: 344px; }
}

/* Mobile: panel above, map below */
@media (max-width: 959px) {
  .carson-stores__page { padding-top: 24px; padding-bottom: 40px; }
  .carson-stores__frame {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    border-radius: 0;
    overflow: visible;
  }
  .carson-stores__side {
    display: contents;
  }
  .carson-stores__bar { order: 1; margin-bottom: 12px; border: 1px solid var(--carson-line); }
  .carson-stores__panel { order: 2; border: 1px solid var(--carson-line); }
  .carson-stores__map {
    position: relative;
    order: 3;
    height: 420px;
    margin-top: 16px;
    border-radius: 16px;
    overflow: hidden;
  }
  .carson-stores__results { max-height: 520px; }
}

@media (max-width: 479px) {
  .carson-stores__form { padding: 20px 16px 16px; }
  .carson-stores__radius { gap: 4px; }
  .carson-stores__map { height: 360px; }
  .carson-store { padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .carson-stores__marker, .carson-store, .carson-stores__pill, .carson-stores__chip, .carson-stores__submit { transition: none; }
}

/* Map clusters: nearby matching stores merge into a count bubble; click zooms in. */
.carson-stores__cluster {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--carson-plum);
  color: #fff;
  font-family: var(--carson-sans);
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(26, 18, 38, 0.25);
  cursor: pointer;
  transition: transform 0.15s var(--carson-ease);
}
.carson-stores__cluster.is-large { width: 44px; height: 44px; font-size: 14px; }
.carson-stores__cluster:hover { transform: scale(1.08); }
.carson-stores__cluster:focus-visible { outline: 2px solid var(--carson-plum); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .carson-stores__cluster { transition: none; } }

/* List-file stores without a phone keep the link hidden (display rules above would show it). */
.carson-store a.carson-store__link[hidden] { display: none; }

/* Callout above the selected pin. */
.carson-stores__popup { z-index: 3; }
.carson-stores__popup .maplibregl-popup-content {
  padding: 14px 34px 14px 16px;
  border-radius: 16px;
  background: var(--carson-white, #fff);
  box-shadow: 0 6px 20px rgba(26, 18, 38, 0.18);
  font-family: var(--carson-sans);
  color: var(--carson-dark);
}
.carson-stores__popup .maplibregl-popup-close-button { top: 6px; right: 8px; width: 24px; height: 24px; border-radius: 50%; font-size: 18px; line-height: 1; color: var(--carson-plum); }
.carson-stores__popup .maplibregl-popup-close-button:hover { background: var(--carson-lavender); }
.carson-stores__pop { display: flex; flex-direction: column; gap: 2px; }
.carson-stores__pop p { margin: 0; }
.carson-stores__pop-name { font-weight: 600; font-size: 16px; line-height: 22px; color: var(--carson-dark); }
.carson-stores__pop-line { font-size: 13px; line-height: 19px; color: var(--carson-muted); }
.carson-stores__pop-meta { display: flex; align-items: center; gap: 12px; margin-top: 6px !important; font-size: 13px; line-height: 18px; }
.carson-stores__pop-distance { padding: 1px 8px; border-radius: 20px; background: var(--carson-lavender); color: var(--carson-plum); font-weight: 600; font-size: 12px; }
.carson-stores__popup a.carson-stores__pop-link { color: var(--carson-plum); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
