.map-container {
  display: flex;
  height: calc(100vh - 72px);
  background-color: #f9fafb;
}

.map-sidebar {
  width: 340px;
  background-color: #ffffff;
  border-right: 1px solid #e5e7eb;
  overflow-y: auto;
  flex-shrink: 0;
}

.search-container {
  position: sticky;
  top: 0;
  background-color: #ffffff;
  padding: 1rem;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.search-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: border-color 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-input::placeholder {
  color: #9ca3af;
}

.search-icon {
  position: absolute;
  width: 18px;
  height: 18px;
  color: #d1d5db;
  pointer-events: none;
}

.filter-btn {
  padding: 0.75rem;
  background-color: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  background-color: #e5e7eb;
}

.filter-btn svg {
  width: 18px;
  height: 18px;
  stroke: #6b7280;
}

.locations-list {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.location-card {
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background-color: #fafbfc;
  cursor: pointer;
  transition: all 0.2s;
}

.location-card:hover {
  border-color: #3b82f6;
  background-color: #eff6ff;
  box-shadow: 0 1px 3px rgba(59, 130, 246, 0.12);
}

.location-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.location-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
  flex: 1;
}

.location-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-yellow {
  background-color: #fef3c7;
  color: #92400e;
}

.badge-green {
  background-color: #dcfce7;
  color: #166534;
}

.badge-purple {
  background-color: #e9d5ff;
  color: #6b21a8;
}

.location-description {
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.location-address {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #6b7280;
}

.address-icon {
  width: 16px;
  height: 16px;
  stroke: #9ca3af;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.map-main {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.map-header {
  padding: 2rem 2rem 1rem;
  text-align: center;
  position: relative;
}

.map-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #3b82f6;
  margin-bottom: 0.5rem;
}

.platform-logo {
  position: absolute;
  right: 2rem;
  top: 2rem;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: bold;
  font-size: 1.25rem;
}

.districts-grid {
  flex: 1;
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  align-content: start;
}

.district-card {
  padding: 1.5rem;
  border: none;
  border-radius: 1rem;
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  color: #ffffff;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.district-card[data-count="42"],
.district-card[data-count="35"],
.district-card[data-count="28"] {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.district-card[data-count="25"],
.district-card[data-count="18"],
.district-card[data-count="15"] {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

.district-card[data-count="12"],
.district-card[data-count="10"],
.district-card[data-count="8"],
.district-card[data-count="5"] {
  background: linear-gradient(135deg, #93c5fd 0%, #60a5fa 100%);
}

.district-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.25);
}

.district-card:active {
  transform: translateY(-2px);
}

.district-name {
  font-size: 1.1rem;
  font-weight: 600;
}

.district-count {
  font-size: 0.875rem;
  opacity: 0.95;
}

.map-legend {
  padding: 1.5rem 2rem;
  display: flex;
  gap: 2rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.legend-dot-high {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.legend-dot-medium {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

.legend-dot-low {
  background: linear-gradient(135deg, #93c5fd 0%, #60a5fa 100%);
}

.map-footer {
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: #9ca3af;
  border-top: 1px solid #e5e7eb;
}

.map-footer-nav {
  background-color: #ffffff;
  border-top: 1px solid #f3f4f6;
  padding: 1rem 0;
  position: sticky;
  bottom: 0;
  z-index: 50;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: #6b7280;
  text-decoration: none;
  font-size: 0.75rem;
  transition: color 0.2s;
  padding: 0.5rem;
}

.footer-item:hover,
.footer-item.active {
  color: #3b82f6;
}

.footer-icon {
  width: 20px;
  height: 20px;
}

.footer-login {
  background-color: #3b82f6;
  color: #ffffff;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.footer-login:hover {
  background-color: #2563eb;
}

@media (max-width: 1024px) {
  .map-container {
    flex-direction: column;
  }

  .map-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    max-height: 50vh;
  }

  .map-main {
    flex: 1;
  }

  .districts-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
  }

  .map-header {
    padding: 1.5rem 1.5rem 1rem;
  }

  .map-legend {
    padding: 1rem 1.5rem;
    gap: 1rem;
  }

  .map-footer {
    padding: 1rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .map-container {
    height: auto;
  }

  .map-sidebar {
    max-height: none;
  }

  .locations-list {
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .location-card {
    padding: 0.75rem;
  }

  .location-title {
    font-size: 0.9rem;
  }

  .location-description {
    font-size: 0.75rem;
  }

  .districts-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    padding: 1rem;
  }

  .district-card {
    padding: 1rem;
  }

  .district-name {
    font-size: 0.95rem;
  }

  .district-count {
    font-size: 0.75rem;
  }

  .map-legend {
    justify-content: center;
    padding: 1rem;
    gap: 1.5rem;
  }

  .map-footer-nav {
    position: static;
  }

  .footer-container {
    gap: 0.5rem;
  }

  .footer-item {
    font-size: 0.65rem;
  }

  .map-title {
    font-size: 1.25rem;
  }

  .platform-logo {
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
    right: 1rem;
    top: 1rem;
  }
}

@media (max-width: 480px) {
  .search-container {
    padding: 0.75rem;
  }

  .search-input {
    padding: 0.6rem 0.75rem;
    font-size: 0.8rem;
  }

  .filter-btn {
    padding: 0.6rem;
  }

  .locations-list {
    padding: 0.5rem;
  }

  .location-card {
    padding: 0.6rem;
  }

  .location-title {
    font-size: 0.85rem;
  }

  .location-description {
    font-size: 0.7rem;
  }

  .location-address {
    font-size: 0.7rem;
  }

  .districts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 0.75rem;
  }

  .district-card {
    padding: 0.75rem;
  }

  .district-name {
    font-size: 0.85rem;
  }

  .district-count {
    font-size: 0.65rem;
  }

  .map-legend {
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem;
  }

  .legend-item {
    font-size: 0.75rem;
  }

  .map-footer {
    padding: 0.75rem;
    font-size: 0.75rem;
  }

  .footer-container {
    gap: 0.25rem;
  }

  .footer-item {
    flex: 1;
    max-width: 60px;
  }

  .footer-login {
    flex: 1;
    max-width: 100px;
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
  }
  
  
}

.modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }
        
        .modal-content {
            position: relative;
            max-width: 90vw;
            max-height: 90vh;
        }
        
        .modal-image {
            max-width: 100%;
            max-height: 90vh;
            border-radius: 8px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
        }
        
        .close-button {
            position: absolute;
            top: -15px;
            right: -15px;
            width: 40px;
            height: 40px;
            background-color: #ef4444;
            color: white;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            font-size: 20px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
        }
        
        .close-button:hover {
            background-color: #dc2626;
            transform: scale(1.1);
        }