/* Custom frontend styles for retailers and map */

.retailer-card {
  cursor: pointer;
  border: 1px solid #e6e6e6;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #fff;
  transition: box-shadow .15s ease, transform .05s ease;
}

.retailer-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.retailer-card.active {
  border-color: #0d6efd;
  box-shadow: 0 8px 24px rgba(13,110,253,0.12);
}

.retailer-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.retailer-meta {
  font-size: 0.85rem;
  color: #6c757d;
}

#map {
  border: 1px solid #e9ecef;
  border-radius: .5rem;
}

#locate-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1000;
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  border-radius: 4px;
}

#locate-btn:hover {
  transform: scale(1.05);
}

#locate-btn:active {
  transform: scale(0.95);
}

.card-all {
  display:flex; align-items:center; justify-content:center; font-weight:600;
}

.small-muted { color: #6c757d; font-size: .85rem; }

/* Custom marker styles */
.custom-div-icon {
  background: transparent !important;
  border: none !important;
}

.custom-marker {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: white;
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  border: 1px solid rgba(0,0,0,0.1);
}

.custom-marker .badge {
  font-size: 0.7rem;
  padding: 0.25rem 0.4rem;
  font-weight: 600;
  white-space: nowrap;
  text-align: center;
}

/* User location marker */
.user-location-marker {
  background: transparent !important;
  border: none !important;
}

.user-location-dot {
  width: 20px;
  height: 20px;
  background: #0d6efd;
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(13, 110, 253, 0.5);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(13, 110, 253, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(13, 110, 253, 0.8);
  }
}
