/* Map the Map - Fully Responsive Corporate Material Design System */
:root {
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --primary: #0f172a;
  --primary-accent: #2563eb;
  --primary-hover: #1d4ed8;
  --accent-light: #eff6ff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
}

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

body {
  font-family: 'Roboto', 'Inter', -apple-system, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Material Header Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-accent);
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #16a34a;
  border-radius: 50%;
  box-shadow: 0 0 8px #16a34a;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.btn-primary {
  background-color: var(--primary-accent);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--primary);
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.btn-secondary:hover {
  background-color: var(--accent-light);
  border-color: var(--primary-accent);
}

/* Corporate Hero Section */
.hero-section {
  padding: 140px 24px 60px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.badge-initiative {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--accent-light);
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.825rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
  color: var(--primary);
  letter-spacing: -0.8px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 32px;
  font-weight: 400;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

/* Stats Section */
.stats-container {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-number {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
}

.stat-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.4rem;
  opacity: 0.7;
}

/* Interactive Map Container */
.map-section {
  padding: 0 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.map-wrapper {
  position: relative;
  width: 100%;
  height: 600px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background-color: #e2e8f0;
}

#map {
  width: 100%;
  height: 100%;
  min-height: 600px;
}

/* Leaflet Popups */
.leaflet-popup-content-wrapper {
  background: #ffffff !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border-color);
  border-radius: 8px !important;
  box-shadow: var(--shadow-md) !important;
  padding: 4px 8px !important;
}

.leaflet-popup-tip {
  background: #ffffff !important;
}

.popup-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 2px;
}

.popup-tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--primary-accent);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Initiative Grid */
.initiative-section {
  padding: 80px 24px;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.initiative-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.initiative-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.initiative-title {
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.initiative-text {
  color: var(--text-muted);
  font-size: 1.025rem;
  margin-bottom: 20px;
  line-height: 1.65;
}

.svg-preview {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  background: #ffffff;
  padding: 16px;
}

/* Feature Cards Grid */
.grid-section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--accent-light);
  color: var(--primary-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 18px;
  font-weight: bold;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.925rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (TABLETS, MOBIL E DEVICES & SMALL SCREENS)
   ========================================================================== */

@media (max-width: 1024px) {
  .navbar {
    padding: 16px 24px;
  }

  .initiative-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 20px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
  }

  .nav-link {
    font-size: 0.85rem;
  }

  .hero-section {
    padding-top: 170px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
  }

  .map-wrapper, #map {
    height: 420px;
    min-height: 420px;
  }

  .initiative-card {
    padding: 24px;
  }

  .initiative-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .brand {
    font-size: 1.1rem;
  }

  .live-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .map-wrapper, #map {
    height: 350px;
    min-height: 350px;
  }

  .feature-card {
    padding: 20px;
  }
}
