/* Dot Earth Map Styles */
.earth-map-container {
  position: relative;
  height: 500px;
  width: 100%;
  margin: 40px 0;
}

.earth-map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.earth-dot {
  width: 4px;
  height: 4px;
  background-color: rgba(48, 48, 54, 0.3);
  border-radius: 50%;
  margin: 0.8px;
  transition: transform 0.3s, background-color 0.3s;
  position: relative;
}

/* Create the circular earth shape */
.earth-map {
  -webkit-mask-image: radial-gradient(circle at center, #000 60%, transparent 70%);
  mask-image: radial-gradient(circle at center, #000 60%, transparent 70%);
}

/* Office Markers */
.office-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 20;
}

.marker-pulse {
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.marker-pulse::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  animation: pulse-animation 2s infinite;
  background-color: inherit;
  z-index: -1;
}

.marker-pulse:hover {
  transform: scale(1.2);
}

/* Office Tooltip */
.office-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  padding: 12px;
  background-color: rgba(39, 39, 43, 0.9);
  backdrop-filter: blur(5px);
  border-radius: 8px;
  width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 30;
  border: 1px solid rgba(48, 48, 54, 0.6);
  pointer-events: none;
}

.office-marker:hover .office-tooltip {
  opacity: 1;
  visibility: visible;
}

.office-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(39, 39, 43, 0.9) transparent transparent transparent;
}

.tooltip-header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.tooltip-header .icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}

.tooltip-title {
  font-weight: 600;
  color: #f9fafb;
  font-size: 14px;
}

.tooltip-subtitle {
  color: #9ca3af;
  font-size: 12px;
  margin-top: 2px;
}

.tooltip-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.tooltip-detail {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #e5e7eb;
}

.tooltip-detail i {
  width: 16px;
  margin-right: 8px;
  color: #9ca3af;
}

/* Wave Animation */
@keyframes pulse-animation {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }
  70% {
    opacity: 0;
    transform: scale(2);
  }
  100% {
    opacity: 0;
    transform: scale(2.5);
  }
}

/* Active offices highlight */
.earth-dot.active {
  background-color: rgba(215, 232, 255, 0.6);
  transform: scale(1.5);
}

/* Office connections */
.office-connection {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.2), rgba(16, 185, 129, 0.2));
  transform-origin: left center;
  z-index: 10;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .earth-map-container {
    height: 350px;
  }
  
  .earth-dot {
    width: 3px;
    height: 3px;
    margin: 0.6px;
  }
}