/* frontend/public/css/app.css */

/* Reset & Mobile Touch Optimizations */
html {
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  touch-action: manipulation;
}

/* Custom Scrollbar for sleek appearance */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Leaflet Map Height & Radius Tweaks */
.leaflet-container {
  font-family: inherit;
  border-radius: 1rem;
  z-index: 10;
}

.leaflet-popup-content-wrapper {
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  padding: 4px;
}

.leaflet-popup-content {
  margin: 8px 12px;
  font-size: 13px;
  line-height: 1.4;
}

/* Custom Pulsing Pin Marker */
.pulse-marker {
  position: relative;
  width: 20px;
  height: 20px;
  background: #059669;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(5, 150, 105, 0.5);
}

.pulse-marker::after {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  width: 30px;
  height: 30px;
  border: 2px solid #059669;
  border-radius: 50%;
  animation: pulse-ring 1.8s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Button & Card Active States for high tactile feel on mobile */
.tap-active:active {
  transform: scale(0.97);
  transition: transform 0.1s ease;
}

/* Floating WhatsApp button glow */
.wa-btn {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  transition: all 0.2s ease;
}
.wa-btn:hover {
  box-shadow: 0 8px 20px -4px rgba(37, 211, 102, 0.45);
  transform: translateY(-1px);
}

/* Shimmer Loading Skeleton */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Verification Badge */
.badge-verified {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
