.store-locator-wrap { max-width: 1200px; margin: 0 auto; padding: 32px 16px; margin-top:90px; }
.store-locator-title { font-size: 2rem; margin-bottom: 16px; font-weight: 600; }
.store-locator-search { margin-bottom: 16px; }
.store-locator-search input[type="search"] {
  width: 100%; max-width: 640px; padding: 10px 12px; font-size: 16px; border: 1px solid #ddd; border-radius: 6px;
}
.store-locator-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 20px; }
@media (max-width: 900px) { .store-locator-grid { grid-template-columns: 1fr; } }
#store-map { width: 100%; height: 520px; border-radius: 10px; border: 1px solid #eee; }
.store-locator-list { border: 1px solid #eee; border-radius: 10px; padding: 8px; max-height: 520px; overflow: auto; }
.store-locator-item { padding: 12px; border-bottom: 1px solid #f0f0f0; cursor: pointer; }
.store-locator-item:last-child { border-bottom: none; }
.store-locator-item:hover, .store-locator-item.active { background: #f9fafb; }
.store-locator-item h4 { margin: 0 0 6px; font-size: 15px; }
.store-locator-item .meta { font-size: 13px; color: #555; }
.store-locator-item .meta span { display:block; }
.store-locator-empty { padding: 12px; color: #777; }
/* ===== Store Locator: smaller popup/badge on the map ===== */
#store-map .leaflet-popup {
  max-width: 240px; /* default 300px; tighten for all screens */
}

#store-map .leaflet-popup-content-wrapper {
  padding: 6px 8px;            /* default ~12px */
  border-radius: 8px;           /* slightly tighter radius */
}

#store-map .leaflet-popup-tip {
  width: 10px;
  height: 10px;
}

#store-map .leaflet-popup-content {
  margin: 6px 6px 6px 6px;      /* reduce inner spacing */
  font-size: 13px;              /* default ~14px */
  line-height: 1.25;
  white-space: normal;          /* ensure wrapping on small screens */
  word-break: break-word;
}

#store-map .leaflet-popup-content strong {
  display: block;
  font-size: 14px;              /* title a touch larger than body */
  line-height: 1.2;
  margin-bottom: 4px;
}

#store-map .leaflet-popup-content a {
  font-size: 13px;
  text-decoration: underline;
}

/* Smaller close button and tighter position */
#store-map .leaflet-popup-close-button {
  top: 4px;
  right: 6px;
  width: 20px;
  height: 20px;
  line-height: 20px;
  font-size: 16px;
}

/* Extra-tight on small phones */
@media (max-width: 480px) {
  #store-map .leaflet-popup { max-width: 200px; }
  #store-map .leaflet-popup-content { font-size: 12px; }
  #store-map .leaflet-popup-content strong { font-size: 13px; }
  #store-map .leaflet-popup-content a { font-size: 12px; }
  #store-map .leaflet-popup-content-wrapper { padding: 6px; }
}
