/* ── WC Store Locator – frontend styles ── */

#wcsl-wrapper {
  position: relative;
  display: flex;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,.2);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Map ── */
#wcsl-globe {
  flex: 1;
  min-width: 0;
  z-index: 0;
}

/* ── Sidebar ── */
#wcsl-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: #1a1a2e;
  color: #e0e0e0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
}

#wcsl-search-box {
  padding: 12px;
  background: #16213e;
  border-bottom: 1px solid #0f3460;
  display: flex;
  align-items: center;
  gap: 8px;
}

#wcsl-search {
  flex: 1;
  background: #0f3460;
  border: none;
  border-radius: 6px;
  color: #fff;
  padding: 8px 10px;
  font-size: 13px;
  outline: none;
}
#wcsl-search::placeholder { color: #8888aa; }

#wcsl-count {
  font-size: 11px;
  color: #8888aa;
  white-space: nowrap;
}

#wcsl-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
}

.wcsl-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid #0f3460;
  transition: background .15s;
}
.wcsl-list-item:hover  { background: #16213e; }
.wcsl-list-item.active { background: #0f3460; }

.wcsl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.wcsl-list-item div { min-width: 0; }
.wcsl-list-item strong {
  display: block;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}
.wcsl-list-item small { font-size: 11px; color: #8888aa; }

.wcsl-empty {
  padding: 20px;
  text-align: center;
  color: #8888aa;
  font-size: 13px;
}

/* ── Popup ── */
#wcsl-popup {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  padding: 20px;
  max-width: 320px;
  width: calc(100% - 320px - 40px);
  z-index: 999;
  font-size: 14px;
  color: #333;
  animation: wcslSlideUp .18s ease;
}

@keyframes wcslSlideUp {
  from { opacity:0; transform: translateX(-50%) translateY(10px); }
  to   { opacity:1; transform: translateX(-50%) translateY(0); }
}

#wcsl-popup h3 {
  margin: 0 24px 8px 0;
  font-size: 16px;
  color: #1a1a2e;
  line-height: 1.3;
}

.wcsl-cat-badge {
  display: inline-block;
  font-size: 11px;
  color: #fff;
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 10px;
}

#wcsl-popup p { margin: 6px 0; line-height: 1.5; }
#wcsl-popup a { color: #0f3460; }
#wcsl-popup .wcsl-notes { font-style: italic; color: #666; font-size: 13px; }

#wcsl-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #eee;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#wcsl-popup-close:hover { background: #ddd; }

.wcsl-directions-btn {
  display: inline-block;
  margin-top: 12px;
  background: #D4AF37;
  color: #1a1a2e !important;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}
.wcsl-directions-btn:hover { background: #bfa02e; }

/* ── Responsive ── */
@media (max-width: 680px) {
  #wcsl-wrapper    { flex-direction: column; }
  #wcsl-sidebar    { width: 100%; height: 200px; }
  #wcsl-popup      { width: calc(100% - 32px); left: 16px; transform: none; }
}
