/* Auto Moto Design System & Unslop Directives */
:root {
  --bg-carbon: #0d0f12;
  --surface-1: #14171c;
  --surface-2: #1b1f26;
  --surface-3: #232832;
  --border-quiet: rgba(255, 255, 255, 0.08);
  --border-focus: #e53935;
  
  --crimson: #d32f2f;
  --crimson-light: #e53935;
  --crimson-hover: #b71c1c;

  --emerald: #10b981;
  --amber: #f59e0b;
  --sky: #0284c7;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-carbon);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Custom Utilities on 4px Grid */
.bg-carbon { background-color: var(--bg-carbon); }
.bg-neutral-850 { background-color: #171a20; }
.bg-neutral-900 { background-color: var(--surface-1); }
.bg-neutral-950 { background-color: #090a0d; }

.border-neutral-800 { border-color: var(--border-quiet); }
.border-neutral-850 { border-color: rgba(255, 255, 255, 0.05); }

.bg-crimson { background-color: var(--crimson); }
.bg-crimson-hover:hover { background-color: var(--crimson-hover); }
.text-crimson { color: var(--crimson); }
.text-crimson-light { color: var(--crimson-light); }
.border-crimson { border-color: var(--crimson) !important; }

/* Font utilities */
.font-mono { font-family: var(--font-mono); }
.tabular-nums { font-variant-numeric: tabular-nums; }

/* Focus and Interactive states */
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--crimson) !important;
  box-shadow: 0 0 0 1px var(--crimson);
}

/* Map Styling & Custom Marker */
#map {
  z-index: 10;
}
.leaflet-container {
  background-color: #121418 !important;
}

/* Custom Marker Pin Animation */
.custom-pin-icon {
  background: transparent;
  border: none;
}
.pin-pulse {
  width: 28px;
  height: 28px;
  background-color: #e53935;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.4);
  position: relative;
}
.pin-pulse::after {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #e53935;
  animation: ripple 2s infinite ease-out;
  opacity: 0.8;
}

@keyframes ripple {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Service Card selection styling */
.service-card {
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

/* WhatsApp Preformatted Area */
#whatsapp-preview-content {
  font-family: var(--font-mono);
  scrollbar-width: thin;
  scrollbar-color: #334155 #0f172a;
}
#whatsapp-preview-content::-webkit-scrollbar {
  width: 6px;
}
#whatsapp-preview-content::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 3px;
}

/* Details summary clean chevron */
details summary::-webkit-details-marker {
  display: none;
}

/* Print or responsive tweaks */
@media (max-width: 640px) {
  .emergency-banner {
    padding-top: 6px;
    padding-bottom: 6px;
  }
}
