/* OrderStraight Stage 2.6f — Near-me badges + toast.
   Additive only. Loaded after directory.css so .meta-row tweaks win. */

.os-card .meta-row .distance-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--os-success, #3F8B5C);
  background: rgba(63, 139, 92, 0.10);
  padding: 2px 8px;
  border-radius: 99px;
  margin-inline-end: 6px;
  white-space: nowrap;
}

/* Near-me pill highlight when active */
.os-filter-pills .os-pill[data-filter="near_me"][aria-pressed="true"] {
  background: var(--os-success, #3F8B5C);
  color: #fff;
  border-color: var(--os-success, #3F8B5C);
}
.os-filter-pills .os-pill[data-filter="near_me"] svg {
  color: var(--os-success, #3F8B5C);
}
.os-filter-pills .os-pill[data-filter="near_me"][aria-pressed="true"] svg {
  color: #fff;
}

/* Toast (location errors / denied) */
.os-toast {
  position: fixed;
  left: 50%;
  bottom: 80px;
  transform: translate(-50%, 20px);
  background: #1C2A44;
  color: #fff;
  padding: 10px 16px;
  border-radius: 99px;
  font-size: 13.5px;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  max-width: 90vw;
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
}
.os-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Map: user-location pulsing blue dot (added by map-card.js) */
.os-user-loc {
  width: 18px; height: 18px;
  background: #1976D2;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(25, 118, 210, .25);
  position: relative;
}
.os-user-loc::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: rgba(25, 118, 210, .18);
  animation: os-user-pulse 1.6s ease-out infinite;
}
@keyframes os-user-pulse {
  0%   { transform: scale(0.6); opacity: .8; }
  100% { transform: scale(1.6); opacity: 0;  }
}
