/* =========================================================
   SYMA STORE LOCATOR
   Colors inherit from the theme; tweak via CSS variables.
========================================================= */

.syma-sl {
  --syma-accent: #302DF8;
  --syma-accent-text: #ffffff;
  --syma-accent-soft: rgba(48, 45, 248, .07);
  --syma-accent-softer: rgba(48, 45, 248, .04);
  --syma-tint-rotate: 203deg;
  --syma-map-height: 700px;
  --syma-line: rgba(0, 0, 0, .14);
  --syma-line-soft: rgba(0, 0, 0, .08);
  --syma-surface: rgba(0, 0, 0, .04);
  --syma-hover: rgba(0, 0, 0, .035);
  --syma-active: rgba(0, 0, 0, .065);
  --syma-map-bg: #e9e7e2;
  --syma-card-bg: #ffffff;
  --syma-card-text: #111111;

  width: 100%;
  color: inherit;
}

@supports (color: color-mix(in srgb, red 50%, blue)) {
  .syma-sl {
    --syma-line: color-mix(in srgb, currentColor 15%, transparent);
    --syma-line-soft: color-mix(in srgb, currentColor 9%, transparent);
    --syma-surface: color-mix(in srgb, currentColor 4%, transparent);
    --syma-hover: color-mix(in srgb, currentColor 4%, transparent);
    --syma-active: color-mix(in srgb, currentColor 7%, transparent);
    --syma-accent-soft: color-mix(in srgb, var(--syma-accent) 8%, transparent);
    --syma-accent-softer: color-mix(in srgb, var(--syma-accent) 4%, transparent);
    --syma-map-bg: color-mix(in srgb, var(--syma-accent) 10%, #f1f1f4);
  }
}

.syma-sl *,
.syma-sl *::before,
.syma-sl *::after {
  box-sizing: border-box;
}

.syma-sl [hidden] {
  display: none !important;
}

.syma-sl-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   CONTAINER & HEADER
========================================================= */

.syma-sl-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 60px 30px;
}

.syma-sl-header {
  text-align: center;
  margin-bottom: 40px;
}

.syma-sl .syma-sl-heading {
  margin: 0 0 12px;
  padding: 0;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.1;
}

.syma-sl-description {
  max-width: 600px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.6;
  opacity: .7;
}

/* =========================================================
   LAYOUT
========================================================= */

.syma-sl-layout {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  width: 100%;
  height: var(--syma-map-height);
  border: 1px solid var(--syma-line);
  overflow: hidden;
}

/* =========================================================
   SIDEBAR
========================================================= */

.syma-sl-sidebar {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  border-right: 1px solid var(--syma-line);
  overflow: hidden;
}

.syma-sl-controls {
  flex: 0 0 auto;
  padding: 22px;
  border-bottom: 1px solid var(--syma-line);
}

/* Search */

.syma-sl-search {
  position: relative;
  margin-bottom: 16px;
}

.syma-sl .syma-sl-search-input {
  width: 100%;
  height: 52px;
  margin: 0;
  padding: 0 48px 0 16px;
  border: 1px solid var(--syma-line);
  border-radius: 0;
  background: var(--syma-surface);
  color: inherit;
  font: inherit;
  font-size: 14px;
  box-shadow: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.syma-sl .syma-sl-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.syma-sl .syma-sl-search-input:focus {
  border-color: var(--syma-accent);
  box-shadow: 0 0 0 3px var(--syma-accent-soft);
}

.syma-sl-search-icon {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  opacity: .55;
  pointer-events: none;
}

/* Filters & near me */

.syma-sl-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.syma-sl-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.syma-sl .syma-sl-filter,
.syma-sl .syma-sl-near-me {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 0;
  margin: 0;
  padding: 10px 16px;
  border: 1px solid var(--syma-line);
  border-radius: 0;
  background: var(--syma-surface);
  color: inherit;
  font: inherit;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: .02em;
  text-transform: none;
  box-shadow: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.syma-sl .syma-sl-filter:hover,
.syma-sl .syma-sl-near-me:hover {
  border-color: var(--syma-accent);
  color: var(--syma-accent);
}

.syma-sl .syma-sl-filter.is-active,
.syma-sl .syma-sl-filter.is-active:hover {
  background: var(--syma-accent);
  border-color: var(--syma-accent);
  color: var(--syma-accent-text);
}

.syma-sl .syma-sl-near-me {
  margin-left: auto;
  background: transparent;
}

.syma-sl .syma-sl-near-me svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.syma-sl .syma-sl-near-me.is-active {
  border-color: var(--syma-accent);
  background: var(--syma-accent-soft);
  color: var(--syma-accent);
}

.syma-sl .syma-sl-near-me.is-loading {
  opacity: .6;
  cursor: progress;
}

.syma-sl-notice {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.5;
  opacity: .75;
}

/* =========================================================
   LIST
========================================================= */

.syma-sl-list {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--syma-line) transparent;
}

.syma-sl-list::-webkit-scrollbar {
  width: 6px;
}

.syma-sl-list::-webkit-scrollbar-track {
  background: transparent;
}

.syma-sl-list::-webkit-scrollbar-thumb {
  background: var(--syma-line);
  border-radius: 10px;
}

.syma-sl-item {
  position: relative;
  padding: 22px;
  border-bottom: 1px solid var(--syma-line-soft);
  cursor: pointer;
  outline: none;
  transition: background-color .2s ease, padding-left .2s ease;
}

.syma-sl-item:hover {
  background: var(--syma-accent-softer);
}

.syma-sl-item:focus-visible {
  box-shadow: inset 0 0 0 2px var(--syma-accent);
}

.syma-sl-item.is-active {
  padding-left: 28px;
  background: var(--syma-accent-soft);
}

.syma-sl-item.is-active::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--syma-accent);
}

.syma-sl-item-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.syma-sl-item-type {
  color: var(--syma-accent);
  font-weight: 600;
}

.syma-sl-distance {
  padding: 2px 7px;
  background: var(--syma-accent-soft);
  color: var(--syma-accent);
  font-weight: 600;
  letter-spacing: .04em;
}

.syma-sl .syma-sl-item-name {
  margin: 0 0 8px;
  padding: 0;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: normal;
  text-transform: none;
}

.syma-sl-item-address {
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.5;
  opacity: .7;
}

.syma-sl-item-hours {
  font-size: 12px;
  line-height: 1.5;
}

.syma-sl .syma-sl-item-phone {
  display: inline-block;
  font-size: 12px;
  line-height: 1.5;
  color: inherit;
  text-decoration: none;
  opacity: .65;
}

.syma-sl .syma-sl-item-phone:hover {
  text-decoration: underline;
  opacity: 1;
}

.syma-sl-item-view {
  display: flex;
  gap: 7px;
  margin-top: 14px;
  font-size: 12px;
}

.syma-sl-item-view span:first-child {
  border-bottom: 1px solid currentColor;
}

.syma-sl-item-view span:last-child {
  transition: transform .2s ease;
}

.syma-sl-item:hover .syma-sl-item-view,
.syma-sl-item.is-active .syma-sl-item-view {
  color: var(--syma-accent);
}

.syma-sl-item:hover .syma-sl-item-view span:last-child {
  transform: translateX(3px);
}

.syma-sl-empty {
  padding: 50px 20px;
  text-align: center;
  font-size: 14px;
  opacity: .6;
}

/* =========================================================
   MAP
========================================================= */

.syma-sl-map {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  background: var(--syma-map-bg);
  overflow: hidden;
}

.syma-sl-map-canvas {
  position: absolute;
  inset: 0;
}

.syma-sl-map-loading {
  position: absolute;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--syma-map-bg);
  color: #111;
  font-size: 13px;
}

/* Leaflet + theme conflict fixes */

.syma-sl .leaflet-container {
  width: 100%;
  height: 100%;
  font: inherit;
  background: var(--syma-map-bg);
}

.syma-sl .leaflet-container img,
.syma-sl .leaflet-container svg {
  max-width: none !important;
  max-height: none !important;
}

/* Map styles (filters on free OSM tiles) */

.syma-sl .syma-sl-tiles--tint {
  filter: grayscale(1) sepia(.7) hue-rotate(var(--syma-tint-rotate)) saturate(2.4) brightness(1.04) contrast(.9);
}

.syma-sl .syma-sl-tiles--light {
  filter: grayscale(1) contrast(.88) brightness(1.06);
}

.syma-sl .syma-sl-tiles--dark {
  filter: invert(1) hue-rotate(180deg) grayscale(.6) brightness(.9) contrast(.9);
}

.syma-sl .leaflet-bar {
  border: 0 !important;
  border-radius: 0;
  box-shadow: 0 3px 15px rgba(0, 0, 0, .15);
}

.syma-sl .leaflet-bar a {
  width: 34px;
  height: 34px;
  line-height: 34px;
  border-radius: 0 !important;
  color: var(--syma-accent);
  text-decoration: none;
}

.syma-sl .leaflet-bar a:hover {
  background: var(--syma-accent);
  color: var(--syma-accent-text);
}

.syma-sl .leaflet-control-attribution {
  font-size: 10px;
}

/* =========================================================
   MARKERS
========================================================= */

.syma-sl-marker-wrap {
  background: none;
  border: 0;
}

.syma-sl-marker {
  position: relative;
  width: 34px;
  height: 42px;
}

.syma-sl-marker-pin {
  position: absolute;
  top: 0;
  left: 3px;
  width: 28px;
  height: 28px;
  background: var(--syma-accent);
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .3);
  transform: rotate(-45deg);
  transition: transform .2s ease;
}

.syma-sl-marker-dot {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
}

/* Stockist pins are outlined so they read differently from stores. */
.syma-sl-marker--stockist .syma-sl-marker-pin {
  background: #fff;
  border-color: var(--syma-accent);
}

.syma-sl-marker--stockist .syma-sl-marker-dot {
  background: var(--syma-accent);
}

.syma-sl-marker.is-active .syma-sl-marker-pin {
  transform: rotate(-45deg) scale(1.18);
  box-shadow: 0 0 0 6px var(--syma-accent-soft), 0 3px 10px rgba(0, 0, 0, .3);
}

/* =========================================================
   POPUP
========================================================= */

.syma-sl .leaflet-popup-content-wrapper {
  border-radius: 0;
  color: var(--syma-card-text);
}

.syma-sl .leaflet-popup-content {
  min-width: 200px;
  margin: 16px;
  font: inherit;
  line-height: 1.4;
}

.syma-sl-popup-type {
  margin-bottom: 6px;
  color: var(--syma-accent);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.syma-sl-popup-name {
  margin-bottom: 7px;
  font-size: 17px;
  line-height: 1.2;
}

.syma-sl-popup-address {
  margin-bottom: 12px;
  font-size: 12px;
  line-height: 1.5;
  opacity: .65;
}

.syma-sl .syma-sl-popup-directions {
  display: inline-flex;
  padding: 9px 13px;
  background: var(--syma-accent);
  color: var(--syma-accent-text);
  font-size: 11px;
  text-decoration: none;
}

/* =========================================================
   INFO CARD
========================================================= */

.syma-sl-info {
  border-top: 3px solid var(--syma-accent);
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 500;
  width: min(380px, calc(100% - 48px));
  padding: 22px;
  background: var(--syma-card-bg);
  color: var(--syma-card-text);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .15);
}

.syma-sl .syma-sl-info-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 22px;
  line-height: 1;
  box-shadow: none;
  opacity: .5;
  cursor: pointer;
}

.syma-sl .syma-sl-info-close:hover {
  opacity: 1;
}

.syma-sl-info-type {
  margin-bottom: 8px;
  color: var(--syma-accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.syma-sl .syma-sl-info-name {
  margin: 0 0 10px;
  padding: 0 28px 0 0;
  color: inherit;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: normal;
  text-transform: none;
}

.syma-sl .syma-sl-info-address,
.syma-sl .syma-sl-info-meta {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
  opacity: .7;
}

.syma-sl .syma-sl-info-meta {
  font-size: 12px;
}

.syma-sl .syma-sl-directions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 5px;
  padding: 0 18px;
  background: var(--syma-accent);
  color: var(--syma-accent-text);
  font-size: 12px;
  text-decoration: none;
  transition: opacity .2s ease;
}

.syma-sl .syma-sl-directions:hover {
  opacity: .85;
}

/* =========================================================
   TABLET
========================================================= */

@media screen and (max-width: 990px) {
  .syma-sl-container {
    padding: 45px 20px;
  }

  .syma-sl-layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .syma-sl-sidebar {
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--syma-line);
  }

  .syma-sl-list {
    flex: none;
    height: 420px;
  }

  .syma-sl-map {
    height: 550px;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media screen and (max-width: 600px) {
  .syma-sl-container {
    padding: 35px 15px;
  }

  .syma-sl-controls {
    padding: 18px;
  }

  .syma-sl-list {
    height: 380px;
  }

  .syma-sl-item {
    padding: 19px 18px;
  }

  .syma-sl-map {
    height: 480px;
  }

  .syma-sl-info {
    left: 15px;
    bottom: 15px;
    width: calc(100% - 30px);
    padding: 18px;
  }
}

/* =========================================================
   WOOCOMMERCE PRODUCT LINK
========================================================= */

.syma-sl-product-link {
  margin: 12px 0 0;
  font-size: 14px;
}

.syma-sl-product-link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.syma-sl-product-link svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}
