.tgwv-store-locator {
  --tgwv-sl-h: 620px;
  --tgwv-sl-list-w: 34%;
  --tgwv-sl-accent: #8b1e2d;
  --tgwv-sl-my: 1.25rem;
  --tgwv-sl-text: #333;
  --tgwv-sl-muted: #555;
  --tgwv-sl-line: #ddd;
  display: flex;
  align-items: stretch;
  width: 100%;
  margin-block: var(--tgwv-sl-my);
  min-height: var(--tgwv-sl-h);
  background: #fff;
  color: var(--tgwv-sl-text);
  font-family: inherit;
  border: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.tgwv-store-locator *,
.tgwv-store-locator *::before,
.tgwv-store-locator *::after {
  box-sizing: border-box;
}

.tgwv-store-locator__map {
  flex: 1 1 auto;
  min-width: 0;
  min-height: var(--tgwv-sl-h);
  height: var(--tgwv-sl-h);
  background: #e8eef3;
  z-index: 0;
}

.tgwv-store-locator__list {
  flex: 0 0 var(--tgwv-sl-list-w);
  width: var(--tgwv-sl-list-w);
  height: var(--tgwv-sl-h);
  max-height: var(--tgwv-sl-h);
  overflow-x: hidden;
  overflow-y: auto;
  border-left: 1px solid var(--tgwv-sl-line);
  padding: 12px 14px 16px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.tgwv-store-locator__count {
  margin: 0 0 10px;
  padding: 0 4px;
  font-size: 15px;
  line-height: 1.4;
  color: #222;
}

.tgwv-store-locator__count strong {
  color: var(--tgwv-sl-accent);
  font-weight: 700;
}

.tgwv-store-locator__empty {
  margin: 8px 4px;
  font-size: 14px;
  color: #777;
}

.tgwv-store-locator__items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tgwv-store-locator__item {
  padding: 12px 8px 12px 10px;
  border-bottom: 1px solid var(--tgwv-sl-line);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.tgwv-store-locator__item:hover,
.tgwv-store-locator__item:focus-visible {
  background: #f7f7f7;
  outline: none;
}

.tgwv-store-locator__item.is-active {
  background: #f0f0f0;
  box-shadow: inset 4px 0 0 var(--tgwv-sl-accent);
}

.tgwv-store-locator__item--no-map {
  cursor: default;
  opacity: 0.85;
}

.tgwv-store-locator__name {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--tgwv-sl-accent);
  line-height: 1.35;
}

.tgwv-store-locator__meta {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 5px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--tgwv-sl-muted);
}

.tgwv-store-locator__meta i {
  margin-top: 2px;
  width: 14px;
  flex-shrink: 0;
  text-align: center;
  color: #666;
  font-size: 12px;
}

.tgwv-store-locator__meta a {
  color: inherit;
  text-decoration: none;
}

.tgwv-store-locator__meta a:hover {
  text-decoration: underline;
  color: var(--tgwv-sl-accent);
}

/* Leaflet popup — Honglam style */
.tgwv-store-locator .leaflet-popup-content-wrapper {
  border-radius: 2px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
  padding: 0;
  overflow: hidden;
}

.tgwv-store-locator .leaflet-popup-content {
  margin: 14px 16px 16px;
  min-width: 300px;
  max-width: 380px;
  line-height: 1.4;
}

.tgwv-store-locator .leaflet-container a.leaflet-popup-close-button {
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  color: #777;
  font: 18px/22px Tahoma, sans-serif;
  padding: 0;
}

.tgwv-store-locator .leaflet-popup-tip {
  box-shadow: none;
}

.tgwv-sl-popup__title {
  margin: 0 22px 12px 0;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #111;
  line-height: 1.3;
}

.tgwv-sl-popup__body {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.tgwv-sl-popup__photo {
  flex: 0 0 100px;
  width: 100px;
  height: 130px;
  object-fit: cover;
  display: block;
  background: #ececec;
  border: 1px solid #e5e5e5;
}

.tgwv-sl-popup__info {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #333;
}

.tgwv-sl-popup__row {
  margin: 0 0 8px;
}

.tgwv-sl-popup__label {
  display: block;
  font-weight: 700;
  color: #111;
  margin-bottom: 2px;
}

.tgwv-sl-popup__info a {
  color: inherit;
  text-decoration: none;
}

.tgwv-sl-popup__info a:hover {
  text-decoration: underline;
}

.tgwv-store-locator .leaflet-control-zoom a {
  width: 30px;
  height: 30px;
  line-height: 30px;
  color: #444;
}

@media (max-width: 991px) {
  .tgwv-store-locator {
    flex-direction: column;
    min-height: 0;
  }

  .tgwv-store-locator__map {
    flex: none;
    width: 100%;
    min-height: 340px;
    height: min(48vh, 440px);
  }

  .tgwv-store-locator__list {
    flex: none;
    width: 100%;
    height: auto;
    max-height: min(48vh, 440px);
    border-left: 0;
    border-top: 1px solid var(--tgwv-sl-line);
  }
}
