.map-tabs {
  position: absolute;
  top: 60px;
  right: 10px;
  display: flex;
  gap: 10px;
  z-index: 1000;
}
.map-tab {
  padding: 8px 16px;
  background: rgb(255, 255, 255, 0.1);
  border: 1px solid rgb(0, 0, 0, 0.5);
  border-radius: 10px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}
.map-tab:hover {
  background: rgb(0, 0, 0, 0.2);
  border-color: #00ff88;
}
.map-tab.active {
  background: rgb(0, 0, 0, 0.2);
  border-color: #2ecc71;
}

.map-tab.raves-tab {
  animation: glow 2s infinite alternate;
}

@keyframes glow {
  0% {
    background: rgba(255, 0, 255, 0.1);
    border-color: #ff00ff;
  }
  100% {
    background: rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
  }
}

.map-header {
  padding: 10px 15px;
  background: rgb(255, 255, 255, 0.1);
  text-align: center;
  border-bottom: 1px solid rgb(0, 0, 0, 0.5);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.4rem;
  color: #ffffff;
  text-shadow: 0 0 3px rgb(0, 0, 0, 0.9);
}

.map-content {
  height: 500px;
  background: rgba(0, 0, 0, 0.1);
  position: relative;
}

.map-footer {
  padding: 10px 15px;
  background: rgb(255, 255, 255, 0.1);
  text-align: center;
  border-top: 1px solid rgb(0, 0, 0, 0.5);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  color: #ffffff;
  text-shadow: 0 0 3px rgb(0, 0, 0, 0.9);
  opacity: 1;
  visibility: visible;
  height: 20px;
  line-height: 20px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.map-spin-button {
  transition: all 0.3s ease;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.9);
}

.map-spin-button:hover:not(.disabled) {
  background: rgba(46, 204, 113, 1) !important;
}

.map-spin-button:active:not(.disabled) {
  transform: scale(0.95);
}

.map-spin-button.disabled {
  opacity: 0.5;
  cursor: not-allowed !important;
  pointer-events: none;
}

#map-container {
  font-family: 'FredokaOne', sans-serif;
  letter-spacing: 1px;
  width: 1000px;
  max-width: 100%;
  margin: -15px auto 40px;
  border: 1px solid rgb(0, 0, 0, 0.5);
  border-radius: 10px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}
.map-header, .map-footer {
  position: relative;
  z-index: 2;
}


#map-container:hover,
#map-container:hover .map-footer,
#map-container:hover .map-header {
  background: rgb(0, 0, 0, 0.2);
  border-color: #00ff88;
}

@media (max-width: 768px) {
  #map-container {
    max-width: 90%;
    width: 90%;
    height: 70%;
  }
  .map-title {
    font-size: 14px;
  }
  .map-content {
    height: 400px;
  }
  .map-header {
    font-size: 1.2rem;
  }
  .map-tabs {
    top: 50px;
    right: 5px;
    gap: 5px;
  }
  .map-tab {
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 8px;
  }
}

.country {
  transition: fill 0.2s ease;
}

.country:hover {
  cursor: pointer;
  fill: #2ecc71 !important;
}

.right-click-hint {
  position: absolute;
  bottom: 50px;
  right: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  z-index: 1000;
  cursor: help;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.right-click-hint:hover {
  background: rgba(0, 0, 0, 0.2);
  border-color: #00ff88;
}

.right-click-hint:hover:after {
  content: "Right-click to rotate";
  position: absolute;
  width: 140px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  right: 45px;
  top: 5px;
}

.mouse-icon {
  right: -8px;
  bottom: -3px;
  width: 20px;
  height: 30px;
  border: 2px solid white;
  border-radius: 10px;
  position: relative;
}

.mouse-icon:before {
  content: "";
  position: absolute;
  top: 5px;
  right: 2px;
  width: 8px;
  height: 10px;
  background: #00ff88;
  border-radius: 4px;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* Mobile tooltip */
.mobile-tooltip {
  position: absolute;
  bottom: 45px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 1001;
  max-width: 80%;
  text-align: center;
  font-size: 14px;
  pointer-events: none;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
  border: 1px solid rgba(46, 204, 113, 0.7);
}