.global-network-section {
  /* max-width: 1500px; */
  width: 90%;
  background: white;
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  
  margin: 40px auto;
}

.network-section-header {
  background: #ececec;
  padding: 10px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.network-section-header::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

.network-section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #000000;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.network-section-header h2 span {
  color: #dc3545;
}

.network-section-header p {
  font-size: 1.25rem;
  color: #312f45;
  position: relative;
  z-index: 1;
  font-weight: 500;
}

.content-wrapper {
  padding: 50px 40px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.stat-card {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  color: white;
  box-shadow: 0 10px 30px rgba(220, 53, 69, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 60%
  );
  transition: transform 0.5s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(220, 53, 69, 0.4);
}

.leaflet-container {
  background: transparent !important;
}

.stat-card:hover::before {
  transform: translate(-25%, -25%);
}

.stat-card:nth-child(2) {
  background: linear-gradient(135deg, #495057 0%, #343a40 100%);
  box-shadow: 0 10px 30px rgba(52, 58, 64, 0.3);
}

.stat-card:nth-child(3) {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  box-shadow: 0 10px 30px rgba(108, 117, 125, 0.3);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.95;
  font-weight: 600;
  position: relative;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.leaflet-control-zoom {
  display: none !important;
}

.search-bar {
  max-width: 500px;
  margin: 0 auto 30px;
  position: relative;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  padding: 5px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.search-input-wrapper:focus-within {
  border-color: #dc3545;
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.2);
  transform: translateY(-2px);
}

.search-icon {
  padding: 15px 20px;
  color: #dc3545;
  font-size: 1.2rem;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 15px 10px;
  font-size: 1rem;
  background: transparent;
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  max-height: 350px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.search-results.active {
  display: block;
}

.search-result-item {
  padding: 15px 20px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 15px;
}

.search-result-item:hover {
  background: linear-gradient(
    90deg,
    rgba(220, 53, 69, 0.1) 0%,
    rgba(200, 35, 51, 0.1) 100%
  );
  padding-left: 25px;
}

.search-result-item img {
  width: 32px;
  height: 24px;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.search-result-text strong {
  display: block;
  color: #333;
  margin-bottom: 3px;
}

.search-result-text small {
  color: #999;
}

.map-container {
  position: relative;
  width: 100%;
  height: 600px;
  border-radius: 25px;
   overflow: hidden; 
  /*overflow: visible !important;*/
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
  margin-bottom: 30px;
}

#map {
  width: 100%;
  height: 100%;
}
.map-controls {
  position: absolute;
  top: 90px;
  left: 10px;
  display: grid;
    /* grid-template-columns: repeat(3, 40px); */
  gap: 6px;
  z-index: 1999;
}

.map-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.map-btn:hover {
  background: #34495e;
  color: white;
  transform: translateY(-2px);
}

.line-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 400;
}

.label-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 500;
}

.map-label {
            position: absolute;
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 2px 7px;
            background: white;
            border: 1px solid #dc3545;
            border-radius: 25px;
            font-size: 0.7rem;
            font-weight: 700;
            color: #333;
            white-space: nowrap;
            box-shadow: 0 6px 20px rgba(220, 53, 69, 0.3);
            pointer-events: auto;
            cursor: pointer;
            opacity: 0;
            transform: scale(0.8);
            transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

.map-label.animate {
  opacity: 1;
  transform: scale(1);
}

.map-label:hover {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.5);
  z-index: 1000;
}

.map-label.active {
  background: linear-gradient(135deg, #495057 0%, #343a40 100%);
  border-color: #495057;
  color: white;
  box-shadow: 0 0 30px rgba(73, 80, 87, 0.6);
  animation: activePulse 2s infinite;
}

@keyframes activePulse {
  0%,
  100% {
    box-shadow: 0 0 30px rgba(73, 80, 87, 0.6);
  }

  50% {
    box-shadow: 0 0 40px rgba(73, 80, 87, 0.8);
  }
}
/* 📱 Mobile Horizontal Controls */
@media (max-width: 768px) {
  .map-controls {
        bottom: 15px;
        top: auto;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 8px;
        padding: 5px 10px;
        background: rgba(255, 255, 255, 0.85);
        border-radius: 12px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        backdrop-filter: blur(4px);
    }

  .map-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    font-size: 17px;
  }
}

.map-label img {
  width: 24px;
  height: 18px;
  border-radius: 3px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* 🔴 INDIA CLUSTER BADGE */
.india-cluster {
  position: absolute;
  background: #dc3545;
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(220, 53, 69, 0.45);
  cursor: pointer;
  z-index: 1200;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: auto;
}

.india-cluster:hover {
  transform: scale(1.15);
}

.info-popup {
  position: absolute;
  top: 20px;
  right: 20px;
  background: white;
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
  max-width: 350px;
  z-index: 1001;
  display: none;
  animation: slideInRight 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.info-popup.active {
  display: block;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3);
}

.popup-close:hover {
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 6px 15px rgba(220, 53, 69, 0.5);
}

.popup-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  padding-right: 30px;
}

.popup-flag {
  width: 56px;
  height: 42px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.popup-title {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 5px;
}

.popup-subtitle {
  color: #999;
  font-size: 0.9rem;
}

.popup-info {
  line-height: 2;
  color: #555;
}

.popup-info p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.popup-info i {
  color: #dc3545;
  font-size: 1.1rem;
  min-width: 20px;
  margin-top: 2px;
}

.popup-info a {
  color: #dc3545;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.popup-info a:hover {
  color: #c82333;
}

.popup-action {
  margin-top: 20px;
}

.activate-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.3);
}

.activate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

.activate-btn.active {
  background: linear-gradient(135deg, #495057 0%, #343a40 100%);
}

.toast-container {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 9999;
}

.toast {
  background: white;
  padding: 15px 20px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  animation: toastSlide 0.3s ease;
}

@keyframes toastSlide {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast.success {
  border-left: 4px solid #495057;
}

.toast.warning {
  border-left: 4px solid #dc3545;
}

.toast.info {
  border-left: 4px solid #6c757d;
}

.toast i {
  font-size: 1.5rem;
}

.toast.success i {
  color: #495057;
}

.toast.warning i {
  color: #dc3545;
}

.toast.info i {
  color: #6c757d;
}

.toast-message {
  flex: 1;
  font-weight: 600;
  color: #333;
}

@media (max-width: 768px) {
  .network-section-header h1 {
    font-size: 2rem;
  }

  .network-section-header p {
    font-size: 1rem;
  }

  .content-wrapper {
    padding: 30px 20px;
  }

  .map-container {
    height: 400px;
  }

  .info-popup {
    left: 20px;
    right: 20px;
    max-width: none;
  }

  .stat-number {
    font-size: 2rem;
  }
}

/* 📱 FULL MOBILE OPTIMIZATION */
@media (max-width: 768px) {
  #map {
    height: 100% !important;
  }

  /* Smaller labels */
  .map-label {
    font-size: 0.65rem !important;
    padding: 2px 6px !important;
    border-radius: 15px !important;
    transform: scale(0.9);
  }

  /* No shadow on labels for clarity */
  .map-label {
    box-shadow: none !important;
  }

  /* Hide desktop popup on phones */
  .info-popup {
    display: none !important;
  }

  /* 📌 Mobile bottom drawer popup */
  .mobile-drawer {
    position: fixed;
    bottom: -300px;
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.15);
    font-family: inherit;
    z-index: 2000;
    transition: all 0.35s ease;
  }

  .mobile-drawer.active {
    bottom: 0;
  }

  .drawer-header {
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 10px;
  }

  .drawer-flag {
    width: 50px;
    height: 36px;
    border-radius: 6px;
  }

  .drawer-title {
    margin-top: 5px;
    font-weight: 700;
  }

  .drawer-close {
    position: absolute;
    right: 14px;
    top: 14px;
    font-size: 25px;
    color: #dc3545;
    cursor: pointer;
    font-weight: bold;
  }

  .drawer-info p {
    margin: 6px 0;
    display: flex;
    gap: 8px;
    color: #444;
    font-size: 0.9rem;
  }

  .drawer-info i {
    color: #dc3545;
  }

  .drawer-action button {
    width: 100%;
    margin-top: 12px;
    border-radius: 50px;
    padding: 10px;
    font-weight: 700;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: #fff;
    border: none;
  }

  /* Taller map on phones */
  .map-container {
    height: 520px !important;
    border-radius: 0;
  }
}
