.rwanda-map-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  min-height: 420px; /* Increased height */
  background: linear-gradient(
    135deg,
    rgba(10, 30, 50, 0.6),
    rgba(26, 82, 118, 0.6)
  );
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  margin-bottom: 20px;
}

.rwanda-map-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 380px; /* Increased height */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.rwanda-map-inner {
  width: 90%;
  height: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.rwanda-map-svg {
  width: 100%;
  height: auto;
  max-height: 400px; /* Increased max-height */
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.rwanda-province {
  fill: rgba(52, 152, 219, 0.3);
  stroke: rgba(255, 255, 255, 0.7);
  stroke-width: 1;
  transition: all 0.3s ease;
  cursor: pointer;
}

.rwanda-province:hover {
  fill: rgba(52, 152, 219, 0.5);
  stroke: #fff;
  stroke-width: 2;
}

.stadium-marker {
  position: absolute;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%);
}

.stadium-marker-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.stadium-dot {
  display: block;
  width: 16px;
  height: 16px;
  background-color: #3498db;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(52, 152, 219, 0.4);
  animation: pulse-stadium 2s infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.premium-stadium .stadium-dot {
  background-color: #f1c40f;
  animation: pulse-premium-stadium 2s infinite;
}

@keyframes pulse-stadium {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.6);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(52, 152, 219, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
  }
}

@keyframes pulse-premium-stadium {
  0% {
    box-shadow: 0 0 0 0 rgba(241, 196, 15, 0.6);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(241, 196, 15, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(241, 196, 15, 0);
  }
}

.stadium-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) scale(0);
  min-width: 160px;
  background-color: rgba(26, 82, 118, 0.95);
  color: #fff;
  text-align: center;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 20;
}

.stadium-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border-width: 6px;
  border-style: solid;
  border-color: rgba(26, 82, 118, 0.95) transparent transparent transparent;
}

.stadium-marker:hover .stadium-tooltip {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  bottom: calc(100% + 15px);
}

.stadium-title {
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 5px;
}

.stadium-info {
  font-size: 0.8rem;
  opacity: 0.9;
}

.stadium-capacity {
  margin-top: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.stadium-capacity-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.stadium-capacity-fill {
  height: 100%;
  background: #2ecc71;
  width: 0%;
  transition: width 1s ease;
}

.stadium-details-btn {
  display: inline-block;
  margin-top: 5px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.stadium-details-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.map-legend {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(26, 82, 118, 0.8);
  border-radius: 6px;
  padding: 8px 12px;
  z-index: 15;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  color: #fff;
  font-size: 0.8rem;
}

.legend-item:last-child {
  margin-bottom: 0;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
}

.legend-national {
  background-color: #f1c40f;
  border: 1px solid #fff;
}

.legend-regular {
  background-color: #3498db;
  border: 1px solid #fff;
}

.rwanda-map-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}

.map-control-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.map-control-btn:hover,
.map-control-btn.active {
  background: rgba(52, 152, 219, 0.3);
  border-color: rgba(52, 152, 219, 0.5);
}

.stadium-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 8px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Map hover effects */
.stadium-marker {
  transform: translate(-50%, -50%) scale(1);
}

.stadium-marker:hover {
  transform: translate(-50%, -50%) scale(1.2);
  z-index: 25;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .rwanda-map-container {
    min-height: 250px;
  }

  .rwanda-map-wrapper {
    min-height: 230px;
  }

  .stadium-marker {
    width: 16px;
    height: 16px;
  }

  .stadium-dot {
    width: 12px;
    height: 12px;
  }

  .map-legend {
    bottom: 5px;
    right: 5px;
    padding: 5px 8px;
  }
}
