/* ==========================================================================
   Retail locations page
   ========================================================================== */
.stores-head { text-align: left; }
.stores-head__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.stores { padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.stores__bar { display: grid; gap: 1rem; padding: 1.1rem; background: #fffaf4; border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 1.25rem; }
.stores__search { display: flex; align-items: center; gap: 0.7rem; padding: 0.75rem 1.1rem; border: 1px solid var(--line); border-radius: 99px; background: var(--cream); }
.stores__search input { flex: 1; border: 0; background: transparent; outline: none; font-size: 1rem; min-width: 0; }
.stores__search:focus-within { border-color: var(--ink); }
.stores__chips { flex-wrap: wrap; }
.stores__chips .chip em { font-style: normal; opacity: 0.6; margin-left: 0.25rem; font-size: 0.8em; }
.stores__chips .chip.is-active em { opacity: 0.8; }
.stores__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.switch { display: inline-flex; align-items: center; gap: 0.6rem; cursor: pointer; font-size: 0.9rem; }
.switch em { font-style: normal; color: var(--muted); }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__box { width: 40px; height: 24px; border-radius: 99px; background: var(--line); position: relative; transition: background 0.3s; flex: none; }
.switch__box::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.3s var(--ease); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
.switch input:checked + .switch__box { background: var(--clay); }
.switch input:checked + .switch__box::after { transform: translateX(16px); }
.switch input:focus-visible + .switch__box { outline: 2px solid var(--clay); outline-offset: 2px; }
.stores__view { display: none; margin-left: auto; border: 1px solid var(--line); border-radius: 99px; padding: 3px; }
.stores__view button { padding: 0.45rem 1.1rem; border-radius: 99px; font-size: 0.85rem; font-weight: 500; }
.stores__view button.is-active { background: var(--ink); color: var(--cream); }
.stores__count { font-size: 0.9rem; color: var(--muted); margin: 0 0 1rem; }

.stores__layout { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 1.5rem; align-items: start; }
.stores__list { display: grid; gap: 0.9rem; list-style: none; padding: 0; margin: 0; padding-top: 6px; margin-top: -6px; }
.stores__list > li[hidden] { display: none; }

.store { background: #fffaf4; border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.15rem 1.25rem; transition: border-color 0.3s, box-shadow 0.3s, transform 0.35s var(--ease); scroll-margin-top: 110px; }
@media (hover: hover) { .store:hover { transform: translateY(var(--lift, -5px)); } }
.store.is-hot, .store.is-active { border-color: var(--clay); box-shadow: 0 14px 28px -22px rgba(201, 101, 61, 0.7); }
.store__top { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.store__name { font-size: 1.35rem; line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
.store__region { flex: none; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.store__badge { display: inline-flex; align-items: center; gap: 0.35rem; margin: 0.55rem 0 0; padding: 0.25rem 0.7rem; border-radius: 99px; background: rgba(201, 101, 61, 0.12); color: var(--clay-dark); font-size: 0.78rem; font-weight: 500; }
.store__addr { margin: 0.6rem 0 0; color: var(--muted); font-size: 0.95rem; }
.store__dist { margin: 0.3rem 0 0; font-size: 0.85rem; color: var(--leaf); font-weight: 500; }
.store__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }
.store__more { margin: 0.7rem 0 0; font-size: 0.85rem; color: var(--muted); }
.store__more a { text-decoration: underline; text-underline-offset: 3px; margin-left: 0.4rem; color: var(--ink); }

.stores__map { position: sticky; top: calc(var(--header-h) + 1rem); }
#stores-map { height: min(640px, calc(100vh - var(--header-h) - 3rem)); min-height: 380px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--sand); z-index: 1; }
.stores__maphint { font-size: 0.78rem; color: var(--muted); margin: 0.6rem 0.4rem 0; }
.stores__empty { padding: 2rem 0; color: var(--muted); }

/* Map pins */
.leaflet-container { font-family: var(--sans); background: var(--sand); }
.pin { background: none; border: 0; }
.pin span { display: block; width: 26px; height: 26px; margin: 2px 2px 0; border-radius: 50% 50% 50% 0; background: var(--ink); transform: rotate(-45deg); box-shadow: 0 6px 12px -4px rgba(42, 26, 18, 0.55); position: relative; transition: transform 0.25s var(--ease), background 0.25s; }
.pin span::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--cream); }
.pin--full span { background: var(--clay); }
.pin--approx span { background: var(--muted); opacity: 0.85; }
.pin.is-hot span { transform: rotate(-45deg) scale(1.25); background: var(--clay-dark); }
.pin--me span { width: 16px; height: 16px; margin: 1px; border-radius: 50%; background: #2f7be5; transform: none; box-shadow: 0 0 0 6px rgba(47, 123, 229, 0.25); }
.pin--me span::after { display: none; }
.leaflet-popup-content-wrapper { border-radius: 1rem; box-shadow: 0 18px 40px -20px rgba(42, 26, 18, 0.55); }
.leaflet-popup-content { font-size: 0.9rem; line-height: 1.45; margin: 0.9rem 1rem; color: var(--ink); }
.leaflet-popup-content strong { font-family: var(--serif); font-size: 1.1rem; font-weight: 400; }
.pop__act { display: flex; gap: 0.5rem; margin-top: 0.6rem; }
.pop__act a { padding: 0.35rem 0.9rem; border-radius: 99px; background: var(--ink); color: var(--cream) !important; font-size: 0.8rem; text-decoration: none; }
.pop__act a + a { background: transparent; color: var(--ink) !important; border: 1px solid var(--line); }

/* Bottom calls to action */
.stores-cta { padding-bottom: clamp(3rem, 7vw, 6rem); }
.stores-cta__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.stores-cta__card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.5rem); background: #fffaf4; display: grid; gap: 1rem; align-content: start; }
.stores-cta__card p { color: var(--muted); max-width: 34ch; margin: 0; }
.stores-cta__card--dark { background: var(--ink); color: var(--cream); border-color: transparent; }
.stores-cta__card--dark p { color: rgba(251, 244, 236, 0.7); }
.stores-cta__card .btn { justify-self: start; }
.stores-cta__card .stores-head__cta { margin-top: 0; }

@media (max-width: 960px) {
  .stores__layout { grid-template-columns: minmax(0, 1fr); }
  .stores__view { display: inline-flex; }
  .stores__layout[data-layout="list"] .stores__map { display: none; }
  .stores__layout[data-layout="map"] .stores__list { display: none; }
  .stores__map { position: static; }
  #stores-map { height: 68vh; min-height: 360px; }
  .stores-cta__grid { grid-template-columns: 1fr; }
  /* Region chips scroll sideways instead of wrapping into many rows */
  .stores__chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -0.25rem; padding: 0.15rem 0.25rem; }
  .stores__chips::-webkit-scrollbar { display: none; }
  .stores__chips .chip { flex: none; }
}
@media (max-width: 640px) {
  .stores__bar { padding: 0.9rem; border-radius: var(--r-md); }
  .store { padding: 1rem; }
  .store__name { font-size: 1.2rem; }
  .store__actions .btn { flex: 1 1 auto; }
}
