@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --background: 210 20% 98%;
  --foreground: 222 47% 11%;
  --card: 0 0% 100%;
  --card-foreground: 222 47% 11%;
  --popover: 0 0% 100%;
  --popover-foreground: 222 47% 11%;
  --primary: 11 80% 53%;
  --primary-foreground: 210 40% 98%;
  --secondary: 210 40% 96%;
  --secondary-foreground: 222 47% 11%;
  --muted: 210 40% 96%;
  --muted-foreground: 215 16% 47%;
  --accent: 210 40% 96%;
  --accent-foreground: 222 47% 11%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 210 40% 98%;
  --warning: 38 92% 50%;
  --warning-foreground: 48 96% 89%;
  --success: 142 71% 45%;
  --success-foreground: 144 100% 95%;
  --border: 214 32% 91%;
  --input: 214 32% 91%;
  --ring: 11 80% 53%;
  --radius: 0.75rem;

  --sidebar: 222 47% 11%;
  --sidebar-foreground: 210 40% 98%;
  --sidebar-border: 217 33% 17%;
  --sidebar-primary: 11 80% 53%;
  --sidebar-primary-foreground: 210 40% 98%;
  --sidebar-accent: 217 33% 17%;
  --sidebar-accent-foreground: 210 40% 98%;

  --spacing: 0.25rem;
  --radius-3xl: 1.5rem;
  --default-font-family: 'Inter', sans-serif;

  --color-white: #ffffff;
  --color-black: #000000;
  --color-slate-50: #f8fafc;
  --color-slate-100: #f1f5f9;
  --color-slate-800: #1e293b;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-900: #111827;

  --color-red-50: #fef2f2;
  --color-red-100: #fee2e2;
  --color-red-200: #fecaca;
  --color-red-300: #fca5a5;
  --color-red-400: #f87171;
  --color-red-500: #ef4444;
  --color-red-600: #dc2626;
  --color-red-700: #b91c1c;

  --color-orange-50: #fff7ed;
  --color-orange-100: #ffedd5;
  --color-orange-200: #fed7aa;
  --color-orange-300: #fdba74;
  --color-orange-400: #fb923c;
  --color-orange-500: #f97316;
  --color-orange-600: #ea580c;
  --color-orange-700: #c2410c;

  --color-green-50: #f0fdf4;
  --color-green-100: #dcfce7;
  --color-green-400: #4ade80;
  --color-green-500: #22c55e;
  --color-green-600: #16a34a;
  --color-green-700: #15803d;

  --color-emerald-50: #ecfdf5;
  --color-emerald-500: #10b981;

  --color-blue-50: #eff6ff;
  --color-blue-500: #3b82f6;

  --color-amber-50: #fffbeb;
  --color-amber-500: #f59e0b;
}

*, ::after, ::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid;
}

html, body {
  height: 100%;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  font-family: var(--default-font-family);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.025em;
}

a {
  color: inherit;
  text-decoration: inherit;
}

button {
  font: inherit;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

/* Base utilities matching Tailwind classes */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.hidden { display: none; }
.block { display: block; }
.grid { display: grid; }

.h-screen { height: 100vh; }
.h-full { height: 100%; }
.h-20 { height: 5rem; }
.h-14 { height: 3.5rem; }
.h-12 { height: 3rem; }
.h-11 { height: 2.75rem; }
.h-10 { height: 2.5rem; }
.h-7 { height: 1.75rem; }
.h-5 { height: 1.25rem; }
.h-4 { height: 1rem; }
.h-3 { height: 0.75rem; }
.h-2 { height: 0.5rem; }
.h-\[400px\] { height: 400px; }
.h-\[520px\] { height: 520px; }

.w-full { width: 100%; }
.w-72 { width: 18rem; }
.w-14 { width: 3.5rem; }
.w-12 { width: 3rem; }
.w-11 { width: 2.75rem; }
.w-10 { width: 2.5rem; }
.w-7 { width: 1.75rem; }
.w-5 { width: 1.25rem; }
.w-4 { width: 1rem; }
.w-3 { width: 0.75rem; }
.w-2 { width: 0.5rem; }

.max-w-md { max-width: 28rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-7xl { max-width: 80rem; }
.min-w-0 { min-width: 0px; }

.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.shrink-0 { flex-shrink: 0; }

.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.overflow-auto { overflow: auto; }

.relative { position: relative; }
.sticky { position: sticky; }
.fixed { position: fixed; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }
.z-\[100\] { z-index: 100; }

.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-0 { padding-top: 0; padding-bottom: 0; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-10 { padding-bottom: 2.5rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-4 { padding-top: 1rem; }

.mx-auto { margin-left: auto; margin-right: auto; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mr-4 { margin-right: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }

.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }
.space-x-2 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.5rem; }
.space-x-3 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.75rem; }
.space-x-4 > :not([hidden]) ~ :not([hidden]) { margin-left: 1rem; }

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Colors & Backgrounds */
.bg-sidebar { background-color: hsl(var(--sidebar)); }
.text-sidebar-foreground { color: hsl(var(--sidebar-foreground)); }
.text-sidebar-foreground\/30 { color: hsla(var(--sidebar-foreground) / 0.3); }
.text-sidebar-foreground\/50 { color: hsla(var(--sidebar-foreground) / 0.5); }
.text-sidebar-foreground\/70 { color: hsla(var(--sidebar-foreground) / 0.7); }

.bg-sidebar-primary { background-color: hsl(var(--sidebar-primary)); }
.text-sidebar-primary-foreground { color: hsl(var(--sidebar-primary-foreground)); }
.hover\:bg-sidebar-accent:hover { background-color: hsl(var(--sidebar-accent)); }
.hover\:text-sidebar-accent-foreground:hover { color: hsl(var(--sidebar-accent-foreground)); }

.bg-sidebar-border\/50 { background-color: hsla(var(--sidebar-border) / 0.5); }
.border-sidebar-border\/50 { border-color: hsla(var(--sidebar-border) / 0.5); }

.bg-slate-50 { background-color: var(--color-slate-50); }
.bg-slate-800 { background-color: var(--color-slate-800); }
.bg-background { background-color: hsl(var(--background)); }
.bg-background\/80 { background-color: hsla(var(--background) / 0.8); }
.backdrop-blur-xl { backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }

.bg-card { background-color: hsl(var(--card)); }
.text-card-foreground { color: hsl(var(--card-foreground)); }

.bg-muted { background-color: hsl(var(--muted)); }
.bg-muted\/20 { background-color: hsla(var(--muted) / 0.2); }
.bg-muted\/30 { background-color: hsla(var(--muted) / 0.3); }
.bg-muted\/40 { background-color: hsla(var(--muted) / 0.4); }
.bg-muted\/50 { background-color: hsla(var(--muted) / 0.5); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }

.bg-primary { background-color: hsl(var(--primary)); }
.text-primary { color: hsl(var(--primary)); }
.text-primary-foreground { color: hsl(var(--primary-foreground)); }
.bg-primary\/10 { background-color: hsla(var(--primary) / 0.1); }
.bg-primary\/20 { background-color: hsla(var(--primary) / 0.2); }

.bg-destructive { background-color: hsl(var(--destructive)); }
.text-destructive { color: hsl(var(--destructive)); }
.text-destructive-foreground { color: hsl(var(--destructive-foreground)); }
.bg-destructive\/10 { background-color: hsla(var(--destructive) / 0.1); }
.border-destructive { border-color: hsl(var(--destructive)); }
.border-destructive\/50 { border-color: hsla(var(--destructive) / 0.5); }
.border-l-destructive { border-left-color: hsl(var(--destructive)); }
.hover\:bg-destructive\/80:hover { background-color: hsla(var(--destructive) / 0.8); }

.bg-warning { background-color: hsl(var(--warning)); }
.text-warning-foreground { color: hsl(var(--warning-foreground)); }
.border-l-warning { border-left-color: hsl(var(--warning)); }
.hover\:bg-warning\/80:hover { background-color: hsla(var(--warning) / 0.8); }

.bg-success { background-color: hsl(var(--success)); }
.text-success-foreground { color: hsl(var(--success-foreground)); }
.border-l-success { border-left-color: hsl(var(--success)); }
.hover\:bg-success\/80:hover { background-color: hsla(var(--success) / 0.8); }

.bg-blue-500\/10 { background-color: rgba(59, 130, 246, 0.1); }
.text-blue-500 { color: #3b82f6; }

.bg-orange-500\/10 { background-color: rgba(249, 115, 22, 0.1); }
.text-orange-500 { color: #f97316; }

.bg-emerald-500\/10 { background-color: rgba(16, 185, 129, 0.1); }
.text-emerald-500 { color: #10b981; }
.text-emerald-600 { color: #059669; }

.bg-white { background-color: #ffffff; }
.text-white { color: #ffffff; }
.bg-green-400 { background-color: #4ade80; }
.bg-green-500 { background-color: #22c55e; }

.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-b { border-bottom-width: 1px; }
.border-r { border-right-width: 1px; }
.border-t { border-top-width: 1px; }
.border-l-4 { border-left-width: 4px; }
.border-none { border-style: none; }
.border-dashed { border-style: dashed; }
.last\:border-0:last-child { border-width: 0px; }

.border-border { border-color: hsl(var(--border)); }
.border-border\/50 { border-color: hsla(var(--border) / 0.5); }
.border-input { border-color: hsl(var(--input)); }
.border-transparent { border-color: transparent; }

.rounded-lg { border-radius: 0.5rem; }
.rounded-md { border-radius: calc(var(--radius) - 2px); }
.rounded-xl { border-radius: calc(var(--radius) + 4px); }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-\[10px\] { font-size: 10px; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-display { font-family: 'Plus Jakarta Sans', sans-serif; }
.font-sans { font-family: 'Inter', sans-serif; }

.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-none { line-height: 1; }
.leading-relaxed { line-height: 1.625; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-nowrap { white-space: nowrap; }
.list-disc { list-style-type: disc; }
.list-inside { list-style-position: inside; }

.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.shadow-sidebar-primary\/20 { box-shadow: 0 10px 15px -3px rgba(234, 67, 38, 0.2); }
.shadow-destructive\/20 { box-shadow: 0 10px 15px -3px rgba(225, 29, 72, 0.2); }
.shadow-black\/5 { box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.05); }

.ring-2 { box-shadow: 0 0 0 2px hsl(var(--background)); }
.ring-background { --tw-ring-color: hsl(var(--background)); }
.outline-none { outline: none; }

.cursor-pointer { cursor: pointer; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }

.hover\:shadow-2xl:hover { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15); }
.hover\:border-border:hover { border-color: hsl(var(--border)); }
.hover\:border-accent:hover { border-color: hsl(var(--accent)); }
.hover\:bg-accent:hover { background-color: hsl(var(--accent)); }
.hover\:text-accent-foreground:hover { color: hsl(var(--accent-foreground)); }
.hover\:bg-muted\/30:hover { background-color: hsla(var(--muted) / 0.3); }
.hover\:bg-muted\/50:hover { background-color: hsla(var(--muted) / 0.5); }
.hover\:opacity-90:hover { opacity: 0.9; }

.group:hover .group-hover\:scale-110 { transform: scale(1.1); }
.group:hover .group-hover\:text-sidebar-foreground { color: hsl(var(--sidebar-foreground)); }
.scale-110 { transform: scale(1.1); }

.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops, #fff, rgba(255,255,255,0.7))); }
.bg-gradient-to-tr { background-image: linear-gradient(to top right, hsl(var(--primary)), #fb923c); }
.from-white { --tw-gradient-from: #ffffff; --tw-gradient-stops: var(--tw-gradient-from), rgba(255, 255, 255, 0.7); }
.to-white\/70 { --tw-gradient-to: rgba(255, 255, 255, 0.7); }
.from-primary { --tw-gradient-from: hsl(var(--primary)); }
.to-orange-400 { --tw-gradient-to: #fb923c; }
.bg-clip-text { -webkit-background-clip: text; background-clip: text; }
.text-transparent { color: transparent; }

@keyframes pulse {
  50% { opacity: 0.5; }
}
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes radar-pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  70% { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}

.radar-ping {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: rgba(59, 130, 246, 0.6);
  animation: radar-pulse 2s infinite ease-out;
}

/* Language Dropdown Menu */
.lang-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.15);
  min-width: 160px;
  z-index: 50;
  overflow: hidden;
}
.lang-dropdown-menu.show {
  display: block;
}
.lang-dropdown-item {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.lang-dropdown-item:hover {
  background-color: hsl(var(--muted));
}
.lang-dropdown-item.active {
  background-color: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  font-weight: 600;
}

/* Leaflet container fixes */
#leaflet-map {
  width: 100%;
  height: 480px;
  border-radius: 1rem;
  z-index: 5;
}

/* Responsive queries */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:flex-row { flex-direction: row; }
  .sm\:items-center { align-items: center; }
  .sm\:bottom-0 { bottom: 0; }
  .sm\:right-0 { right: 0; }
  .sm\:top-auto { top: auto; }
  .sm\:flex-col { flex-direction: column; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:block { display: block; }
  .md\:p-8 { padding: 2rem; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:flex-row { flex-direction: row; }
  .md\:items-center { align-items: center; }
  .md\:self-center { align-self: center; }
  .md\:max-w-\[420px\] { max-width: 420px; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:p-10 { padding: 2.5rem; }
  .lg\:px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
}

/* Mobile Sidebar Drawer */
@media (max-width: 767px) {
  aside.mobile-open {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 50;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  }
  .mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 40;
  }
  .mobile-overlay.active {
    display: block;
  }
}
