:root {
  --primary: #2d5a27;
  --primary-light: #4c8c4a;
  --secondary: #d4a373;
  --accent: #fefae0;
  --dark: #1a2a1a;
  --light: #f8f9fa;
  --danger: #e76f51;
  --glass: rgba(255, 255, 255, 0.1);
  --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:
    "Inter",
    -apple-system,
    sans-serif;
}

body {
  background: linear-gradient(135deg, #1a2a1a 0%, #2d5a27 100%);
  color: #fff;
  min-height: 100vh;
  padding-bottom: 50px;
}

/* Navbar Responsive Styles */
.navbar {
  background: rgba(45, 90, 39, 0.9);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--glass);
}

.nav-brand {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--accent);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--light);
  border-radius: 2px;
  transition: 0.3s;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  margin-left: 2rem;
  font-weight: 500;
  transition: 0.3s;
  opacity: 0.8;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  color: var(--secondary);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(26, 42, 26, 0.98);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass);
    animation: slideDown 0.3s ease-out;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    margin: 0;
    padding: 1rem 2rem;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .grid,
  .stats-grid {
    grid-template-columns: 1fr !important;
  }

  h1 {
    font-size: 1.8rem;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

h1,
h2,
h3 {
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 15px;
  border-left: 4px solid var(--secondary);
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.7;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

th {
  text-align: left;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  color: var(--secondary);
  font-size: 0.8rem;
  text-transform: uppercase;
}

td {
  padding: 1rem;
  border-bottom: 1px solid var(--glass);
  font-size: 0.95rem;
}

tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.btn {
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: var(--secondary);
  color: var(--dark);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 163, 115, 0.4);
}

.model-section {
  line-height: 1.8;
}

.model-section p {
  margin-bottom: 1rem;
  opacity: 0.9;
}

.badge {
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: bold;
}

.badge-green {
  background: #2a9d8f;
}
.badge-blue {
  background: #457b9d;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  animation: fadeIn 0.8s ease forwards;
}

#map {
  height: 600px;
  width: 100%;
  border-radius: 20px;
  border: 2px solid var(--glass);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  z-index: 1;
}

.leaflet-popup-content-wrapper {
  background: var(--dark) !important;
  color: #fff !important;
  border: 1px solid var(--secondary);
}

.leaflet-popup-tip {
  background: var(--dark) !important;
}

.map-popup-header {
  color: var(--secondary);
  font-weight: 800;
  margin-bottom: 5px;
  border-bottom: 1px solid var(--glass);
  padding-bottom: 5px;
}

.map-popup-detail {
  font-size: 0.85rem;
  line-height: 1.4;
}
