/* =========================
  ScanWin — retail-locations.css
========================= */

/* ===== Page layout grid ===== */
.sw-ml-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  grid-template-rows: auto auto auto;
  gap: 24px;
  grid-template-areas:
    "stats stats"
    "map   home"
    "map   scanned";
  align-items: start;
}
.sw-ml-stats {
  grid-area: stats;
}
.sw-ml-mapwrap {
  grid-area: map;
}
.sw-ml-home {
  grid-area: home;
}
.sw-ml-scanned {
  grid-area: scanned;
}

/* ===== Location stats ===== */
.sw-ml-stats {
  padding-top: 4px;
}

/* the Leaflet container */
.sw-ml-map {
  height: 480px;
  border-radius: 16px;
  border: 1px solid #edf0f2;
  box-shadow: 0 6px 20px rgba(26, 26, 56, 0.07);
  overflow: hidden;
  background: #e8ecf0;
  z-index: 0;
}
.sw-ml-map.leaflet-container {
  font: inherit;
}

/* floating chrome over the map */
.sw-ml-mapsearch {
  top: 19px;
  left: 19px;
  z-index: 600;
  width: min(380px, calc(100% - 38px));
  height: 44px;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 6px 20px rgba(26, 26, 56, 0.07);
}
.sw-ml-mapsearch svg {
  width: 16px;
  height: 16px;
  color: #9ca3af;
  flex-shrink: 0;
}
.sw-ml-mapsearch input {
  outline: 0;
  border: 0;
  background: transparent;
  width: 100%;
  font-size: 13px;
  color: #0f0f21;
}
.sw-ml-mapsearch input::placeholder {
  color: #9ca3af;
}

.sw-ml-mapfilters {
  position: absolute;
  top: 77px;
  left: 19px;
  z-index: 600;
  display: flex;
  gap: 8px;
}
/* map filter chips — .btn themed via vars (is-active is JS-owned) */
.sw-ml-mapchip {
  --bs-btn-bg: #fff;
  --bs-btn-color: #6b7280;
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-color: #6b7280;
  --bs-btn-border-width: 0;
  --bs-btn-font-size: 12px;
  --bs-btn-font-weight: 600;
  --bs-btn-padding-y: 8px;
  --bs-btn-padding-x: 14px;
  --bs-btn-line-height: normal;
  --bs-btn-focus-shadow-rgb: 110, 93, 248;
  box-shadow: 0 6px 20px rgba(26, 26, 56, 0.07);
}
.sw-ml-mapchip.is-active {
  background: #6e5df8;
  color: #fff;
}

.sw-ml-mapcount {
  position: absolute;
  bottom: 19px;
  left: 19px;
  z-index: 600;
  color: #0f0f21;
  font-size: 12px;
  padding: 8px 12px;
  box-shadow: 0 6px 20px rgba(26, 26, 56, 0.07);
}
.sw-ml-mapcount svg {
  width: 14px;
  height: 14px;
  color: #6e5df8;
}

/* ===== Custom Leaflet markers ===== */
.sw-ml-pin {
  background: transparent;
  border: 0;
}
.sw-ml-pin svg {
  display: block;
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 3px 4px rgba(26, 26, 64, 0.25));
}

.sw-ml-homepin {
  background: transparent;
  border: 0;
}
.sw-ml-homepin__dot {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #6e5df8;
  box-shadow: 0 3px 6px rgba(26, 26, 64, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sw-ml-homepin__dot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(110, 93, 248, 0.18);
  z-index: -1;
}
.sw-ml-homepin__dot svg {
  width: 22px;
  height: 22px;
  color: #fff;
}
.sw-ml-homepin__tag {
  position: absolute;
  left: 50%;
  top: 52px;
  transform: translateX(-50%);
  background: #fff;
  color: #6e5df8;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(26, 26, 56, 0.07);
}

/* ===== Leaflet zoom control restyle ===== */
.sw-ml-map .leaflet-control-zoom {
  border: 1px solid #edf0f2;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(26, 26, 56, 0.07);
}
.sw-ml-map .leaflet-control-zoom a {
  width: 32px;
  height: 32px;
  line-height: 32px;
  color: #6b7280;
  font-size: 18px;
  font-weight: 500;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #edf0f2;
}
.sw-ml-map .leaflet-control-zoom a:last-child {
  border-bottom: 0;
}
.sw-ml-map .leaflet-control-zoom a:hover {
  background: #f8f9fb;
  color: #0f0f21;
}
.sw-ml-map .leaflet-bar {
  box-shadow: none;
}

/* ===== Custom store popup (Leaflet) ===== */
.sw-ml-map .leaflet-popup.sw-ml-pop .leaflet-popup-content-wrapper {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(15, 13, 51, 0.22);
  padding: 0;
}
.sw-ml-map .leaflet-popup.sw-ml-pop .leaflet-popup-content {
  margin: 0;
  width: 274px !important;
}
.sw-ml-map .leaflet-popup.sw-ml-pop .leaflet-popup-tip {
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 13, 51, 0.12);
}
.sw-ml-map .leaflet-popup.sw-ml-pop a.leaflet-popup-close-button {
  display: none;
}

.sw-ml-card {
  padding: 14px 15px;
  gap: 11px;
}
.sw-ml-card__name {
  font-size: 15.5px;
  color: #0f0f21;
}
.sw-ml-card__addr {
  font-size: 12.5px;
  color: #6b7280;
  margin-top: 3px;
}
.sw-ml-card__x {
  width: 24px;
  height: 24px;
  background: #f2f5f7;
  color: #9499a8;
  font-size: 16px;
  line-height: 1;
}
.sw-ml-card__tag {
  line-height: 1.5; /* .badge hardcodes 1 */
  --bs-badge-font-size: 11.5px;
  --bs-badge-font-weight: 600;
  --bs-badge-padding-y: 5px;
  --bs-badge-padding-x: 10px;
  padding-left: 8px;
}
.sw-ml-card__tag svg {
  width: 12px;
  height: 12px;
}
.sw-ml-card__tag--dist {
  background: #f3f1fe;
  --bs-badge-color: #6e5df8;
}
.sw-ml-card__tag--scan {
  background: #dbf5e5;
  --bs-badge-color: #057352;
  padding-left: 10px;
}
.sw-ml-card__dir {
  --bs-btn-bg: #6e5df8;
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: #6e5df8;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: #6e5df8;
  --bs-btn-active-color: #fff;
  --bs-btn-border-width: 0;
  --bs-btn-font-size: 13.5px;
  --bs-btn-font-weight: 600;
  --bs-btn-padding-y: 10px;
  --bs-btn-padding-x: 10px;
  --bs-btn-border-radius: 9px;
  --bs-btn-line-height: normal;
  --bs-btn-focus-shadow-rgb: 110, 93, 248;
}
.sw-ml-card__dir svg {
  width: 15px;
  height: 15px;
}
.sw-ml-card__view {
  --bs-btn-bg: #fff;
  --bs-btn-color: #6b7280;
  --bs-btn-border-color: #e5e7eb;
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-color: #6b7280;
  --bs-btn-hover-border-color: #e5e7eb;
  --bs-btn-font-size: 13.5px;
  --bs-btn-font-weight: 600;
  --bs-btn-padding-y: 10px;
  --bs-btn-padding-x: 14px;
  --bs-btn-border-radius: 9px;
  --bs-btn-line-height: normal;
  --bs-btn-focus-shadow-rgb: 110, 93, 248;
}

.leaflet-popup.sw-ml-pop a.sw-ml-card__dir,
.leaflet-popup.sw-ml-pop a.sw-ml-card__dir:hover {
  color: #fff;
}
.leaflet-popup.sw-ml-pop a.sw-ml-card__view,
.leaflet-popup.sw-ml-pop a.sw-ml-card__view:hover {
  color: #6b7280;
}

/* ===== Home base card ===== */
.sw-ml-home {
  --bs-card-border-color: #6e5df8;
  --bs-card-border-radius: 16px;
  --bs-card-spacer-y: 20px;
  --bs-card-spacer-x: 20px;
  box-shadow: 0 6px 20px rgba(26, 26, 56, 0.06);
  gap: 14px;
}
.sw-ml-home__kicker {
  font-size: 10px;
  letter-spacing: 0.3px;
  color: #6e5df8;
}
.sw-ml-home__pill {
  line-height: 1.5; /* .badge hardcodes 1 */
  --bs-badge-font-size: 11px;
  --bs-badge-font-weight: 600;
  --bs-badge-color: #6e5df8;
  --bs-badge-padding-y: 5px;
  --bs-badge-padding-x: 9px;
  background: #f3f1fe;
}
.sw-ml-home__pill svg {
  width: 12px;
  height: 12px;
}
.sw-ml-home__ico {
  width: 48px;
  height: 48px;
  background: #f3f1fe;
  color: #6e5df8;
}
.sw-ml-home__ico svg {
  width: 24px;
  height: 24px;
}
.sw-ml-home__addr {
  margin-top: 2px;
  font-size: 11px;
  color: #9ca3af;
}
.sw-ml-home__addr svg {
  width: 12px;
  height: 12px;
  color: #9ca3af;
  flex-shrink: 0;
}
.sw-ml-home__tag {
  line-height: 1.5; /* .badge hardcodes 1 */
  --bs-badge-font-size: 11px;
  --bs-badge-font-weight: 600;
  --bs-badge-padding-y: 5px;
  --bs-badge-padding-x: 9px;
}
.sw-ml-home__tag svg {
  width: 12px;
  height: 12px;
}
.sw-ml-home__tag--scan {
  background: #f2f2f5;
  --bs-badge-color: #6b7280;
}
.sw-ml-home__tag--rate {
  background: #dbf7e5;
  --bs-badge-color: #047857;
}
/* violet-outline CTA — .btn themed via vars */
.sw-ml-home__btn {
  --bs-btn-bg: #fff;
  --bs-btn-color: #6e5df8;
  --bs-btn-border-color: #6e5df8;
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-color: #6e5df8;
  --bs-btn-hover-border-color: #6e5df8;
  --bs-btn-active-bg: #f3f1fe;
  --bs-btn-active-color: #6e5df8;
  --bs-btn-active-border-color: #6e5df8;
  --bs-btn-font-size: 13px;
  --bs-btn-font-weight: 600;
  --bs-btn-padding-y: 11px;
  --bs-btn-border-radius: 10px;
  --bs-btn-line-height: normal;
  --bs-btn-focus-shadow-rgb: 110, 93, 248;
}

/* ===== Scanned stores list ===== */
.sw-ml-scanned {
  --bs-card-border-color: #edf0f2;
  --bs-card-border-radius: 16px;
  box-shadow: 0 6px 20px rgba(26, 26, 56, 0.06);
}
/* Bootstrap list-group themed via its vars (rows keep only inner joins) */
.sw-ml-srows {
  --bs-list-group-border-color: #edf0f2;
  --bs-list-group-item-padding-y: 11px;
  --bs-list-group-item-padding-x: 16px;
}

.sw-ml-scanned__head {
  padding: 16px 16px 12px;
}
.sw-ml-scanned__title {
  font-size: 15px;
  color: #0f0f21;
}
.sw-ml-scanned__all {
  font-size: 13px;
  color: #6e5df8;
}
.sw-ml-srow__ico {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #f2f2f5;
  color: #6b7280;
}
.sw-ml-srow__ico svg {
  width: 17px;
  height: 17px;
}
.sw-ml-srow__name {
  font-size: 13px;
  color: #0f0f21;
}
.sw-ml-srow__addr {
  font-size: 11px;
  color: #9ca3af;
}
.sw-ml-srow__pts {
  font-size: 12px;
  color: #0f0f21;
}
.sw-ml-srow__rate {
  gap: 2px;
  font-size: 11px;
  color: #6b7280;
}
.sw-ml-srow__rate svg {
  width: 11px;
  height: 11px;
  color: #f5b301;
}


.sw-ml-mobtitle__h {
  font-size: 18px;
  color: #0f0f21;
}
.sw-ml-mobtitle__sub {
  font-size: 12px;
  color: #6b7280;
}

/* ===== Responsive ===== */
@media (max-width: 1199.98px) {
  .sw-ml-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}
@media (max-width: 991.98px) {
  .sw-ml-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .sw-ml-stats {
    padding-top: 0;
  }
  .sw-ml-map {
    height: 440px;
  }
  .sw-ml-stat__val {
    font-size: 18px;
  }
}

.sw-hb-modal {
  --bs-modal-width: 560px;
  --bs-modal-border-width: 0;
  --bs-modal-border-radius: 20px;
  --bs-modal-padding: 26px 28px 24px;
  --bs-modal-box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  --bs-modal-title-line-height: normal;
}

.modal-backdrop {
  --bs-backdrop-bg: #0e0f1f;
  --bs-backdrop-opacity: 0.5;
}
.sw-hb-modal__sub {
  font-size: 13px;
  color: #6b7280;
}
.sw-hb-modal__note {
  font-size: 12px;
  color: var(--sw-text-faint);
}
.sw-hb-modal__btn {
  --bs-btn-color: var(--sw-text);
  --bs-btn-font-size: 13.5px;
  --bs-btn-padding-y: 11px;
  --bs-btn-padding-x: 18px;
  --bs-btn-border-radius: 12px;
}

.sw-btn-primary {
  --bs-btn-color: #FFFFFF;
}

.sw-hb-search {
  --bs-border-color: #e5e8ed;
  --bs-border-radius: 12px;
  --bs-secondary-color: var(--sw-text-faint);
  --bs-tertiary-color: var(--sw-text-faint);
}
.sw-hb-search .input-group-text,
.sw-hb-search .form-control {
  height: 44px;
}
.sw-hb-search .form-control {
  font-size: 13.5px;
}
.sw-hb-search .form-control:focus {
  border-color: var(--bs-border-color);
  box-shadow: none;
}
.sw-hb-search svg {
  width: 16px;
  height: 16px;
}

.sw-hb-option {
  --bs-border-color: #e5e8ed;
  background: #fff;
  padding: 12px 14px;
  border-radius: 14px;
  cursor: pointer;
}
.sw-hb-option:has(.form-check-input:checked) {
  --bs-border-color: var(--sw-violet);
  --bs-border-width: 1.5px;
  background: #f3f1fe;
  padding: 11.5px 13.5px;
}
.sw-hb-option__ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f2f2f6;
  color: #9499a8;
}
.sw-hb-option:has(.form-check-input:checked) .sw-hb-option__ico {
  background: #fff;
  color: var(--sw-violet);
}
.sw-hb-option__ico svg {
  width: 18px;
  height: 18px;
}
.sw-hb-option__text {
  gap: 2px; /* off the gap scale */
}
.sw-hb-option__name {
  font-size: 14px;
}
.sw-hb-option__addr {
  font-size: 12px;
  color: #6b7280;
}
.sw-hb-option__meta {
  font-size: 11.5px;
  color: var(--sw-text-faint);
}
.sw-hb-option__meta--current {
  color: var(--sw-violet);
}

.sw-hb-option .form-check-input {
  width: 20px;
  height: 20px;
}
.sw-hb-option .form-check-input:checked {
  background-color: var(--sw-violet);
  border-color: var(--sw-violet);
}
.sw-hb-option .form-check-input:focus {
  border-color: #b9aef5;
  box-shadow: 0 0 0 3px rgba(110, 93, 248, 0.2);
}

@media (max-width: 575.98px) {
  .sw-hb-modal {
    --bs-modal-padding: 20px 18px 18px;
  }
  .sw-hb-modal__btn {
    --bs-btn-padding-x: 14px;
  }
}
