/* ── Store Locator Map — Frontend Styles ── */

#sl-wrapper {
  display: flex;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.14);
  font-family: 'Segoe UI', Arial, sans-serif;
}

/* ── Sidebar ── */
#sl-sidebar {
  width: 340px;
  min-width: 260px;
  background: #fff;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e8ecf0;
}

#sl-sidebar-header {
  padding: 18px 20px 14px;
  background: var(--slm-primary, #1a73e8);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}
#sl-sidebar-header h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 3px;
  color: #fff;
  border: none;
}
#sl-sidebar-header p {
  font-size: 12px;
  opacity: .85;
  margin: 0;
  color: #fff;
}

/* ── Cards ── */
.sl-card {
  padding: 14px 18px;
  border-bottom: 1px solid #eef0f3;
  cursor: pointer;
  transition: background .15s, border-left-color .15s;
  border-left: 4px solid transparent;
}
.sl-card:hover  { background: #f0f6ff; border-left-color: var(--slm-primary, #1a73e8); }
.sl-card.active { background: #e8f0fe; border-left-color: var(--slm-primary, #1a73e8); }

.sl-card-title-row {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}
.sl-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--slm-primary, #1a73e8);
  color: #fff;
  font-size: 11px; font-weight: 700;
  text-align: center; line-height: 22px;
  margin-right: 8px; flex-shrink: 0;
  transition: background .15s;
}
.sl-card.active .sl-num { background: var(--slm-active, #ea4335); }

.sl-name  { font-size: 14px; font-weight: 700; color: #1a1a2e; }
.sl-addr  { font-size: 12px; color: #555; margin-bottom: 4px; padding-left: 30px; }
.sl-hours { font-size: 11px; color: #888; padding-left: 30px; margin-bottom: 5px; }
.sl-tags  { padding-left: 30px; }
.sl-tag {
  display: inline-block;
  background: #e8f0fe; color: var(--slm-primary, #1a73e8);
  font-size: 10px; font-weight: 600;
  border-radius: 20px; padding: 2px 9px;
  margin: 2px 2px 0 0;
}

/* ── Map ── */
#sl-map { flex: 1; min-height: 300px; }

/* ── Leaflet popup overrides ── */
.leaflet-popup-content-wrapper {
  border-radius: 10px !important;
  box-shadow: 0 4px 18px rgba(0,0,0,0.18) !important;
  padding: 0 !important;
  overflow: hidden;
}
.leaflet-popup-content { margin: 0 !important; width: auto !important; }
.leaflet-popup-tip-container { margin-top: -1px; }

.sl-popup { padding: 14px 16px; min-width: 210px; max-width: 260px; font-family: 'Segoe UI', Arial, sans-serif; }
.sl-popup-title {
  font-size: 14px; font-weight: 700; color: #1a1a2e;
  border-bottom: 2px solid var(--slm-primary, #1a73e8);
  padding-bottom: 6px; margin-bottom: 8px;
}
.sl-popup-row {
  display: flex; gap: 6px; font-size: 12px; color: #444;
  margin-bottom: 5px; align-items: flex-start;
}
.sl-popup-row svg { flex-shrink: 0; margin-top: 1px; }
.sl-popup-label {
  font-size: 10px; font-weight: 700; color: #888;
  text-transform: uppercase; letter-spacing: .5px;
  margin: 7px 0 4px;
}
.sl-popup .sl-tag { background: #e8f0fe; color: var(--slm-primary, #1a73e8); }

/* ── Responsive ── */
@media (max-width: 680px) {
  #sl-wrapper     { flex-direction: column; }
  #sl-sidebar     { width: 100%; max-height: 260px; border-right: none; border-bottom: 1px solid #e8ecf0; }
  #sl-map         { height: 350px !important; }
}
