@charset "UTF-8";
.map-container {
  position: relative;
  background: transparent;
  /*padding: 40px;*/
  /* margin: 40px 0; */
  overflow: visible;
}

.world-map {
  width: 100%;
  /* height: 500px;*/
  position: relative;
  border-radius: 10px;
  background: transparent;
  overflow: visible;
}

.world-map svg {
  width: 100%;
  /* height: 100%;*/
  object-fit: contain;
}

.region-marker {
  position: absolute;
  width: 40px;
  height: 40px;
  background: #3b5ca0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(46, 91, 186, 0.3);
  border: 2px solid #3B5CA0;
  z-index: 50;
}

.region-marker:hover {
  background: #516797;
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(255, 107, 53, 0.4);
}

.region-marker.active {
  background: №516797;
  transform: scale(1.15);
}

/* Позиционирование маркеров регионов */
.far-east {
  top: 30%;
  left: 85%;
}

.europe {
  top: 10%;
  left: 55%;
}

.north-america {
  top: 30%;
  left: 15%;
}

.south-america {
  top: 60%;
  left: 22%;
}

.africa {
  top: 50%;
  left: 52%;
}

.middle-east {
  top: 20%;
  left: 60%;
}

.australia {
  top: 75%;
  left: 90%;
}

/* Панель портов */
.ports-panel {
  position: absolute;
  width: 350px;
  background: #1e3566;
  border: 1px solid #3B5CA0;
  border-radius: 2px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
  overflow: hidden;
  z-index: 15;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
}

.ports-panel.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 555;
}

.ports-panel.position-right {
  left: calc(100% + 20px);
  top: 50%;
  transform: translateY(-50%) scale(0.8);
}

.ports-panel.position-right.active {
  transform: translateY(-50%) scale(1);
}

.ports-panel.position-left {
  right: calc(100% + 20px);
  top: 50%;
  transform: translateY(-50%) scale(0.8);
}

.ports-panel.position-left.active {
  transform: translateY(-50%) scale(1);
}

.ports-panel.position-bottom {
  left: 50%;
  top: calc(100% + 20px);
  transform: translateX(-50%) scale(0.8);
}

.ports-panel.position-bottom.active {
  transform: translateX(-50%) scale(1);
}

.ports-header {
  background: var(--primary-color);
  color: white;
  padding: 8px;
  position: relative;
}

.ports-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.close-panel {
  position: absolute;
  top: 0px;
  right: 15px;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.close-panel:hover {
  background: rgba(255, 255, 255, 0.2);
}

.ports-list {
  padding: 20px;
  max-height: 300px;
  overflow-y: auto;
}

.port-item {
  display: flex;
  align-items: center;
  /* padding: 12px 15px; */
  /*margin-bottom: 8px; *
  /* background: #f8f9fa;*/
  transition: all 0.3s ease;
  /* border-left: 4px solid var(--primary-color);*/
}

/*
        .port-item:hover {
            background: #e9ecef;
            transform: translateX(5px);
        }

        */
.port-flag {
  font-size: 1.5rem;
  margin-right: 12px;
}

.port-name {
  font-weight: 500;
  color: var(--text-dark);
}

.routes-section {
  background: white;
  padding: 60px 0;
}

.route-header {
  text-align: center;
}

/*        .route-card {
            background: white;
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 20px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.08);
            border-left: 5px solid var(--primary-color);
            transition: all 0.3s ease;
        }


        .route-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        }
        */
.route-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.route-arrow {
  color: var(--accent-color);
  margin: 0 10px;
  font-weight: bold;
}

.stats-section {
  background: var(--bg-light);
  padding: 60px 0;
}

.stat-card {
  text-align: center;
  padding: 30px 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  height: 100%;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--text-light);
  font-weight: 500;
}

.legend {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

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

.legend-color.active {
  background: var(--accent-color);
}

.legend-color.inactive {
  background: var(--primary-color);
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .map-container {
    /*padding: 20px;*/
    overflow: visible;
  }
  .world-map {
    height: 300px;
  }
  .region-marker {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
  /* На мобильных панель всегда внизу */
  .ports-panel {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 60vh;
    border-radius: 15px 15px 0 0;
    transform: none;
    z-index: 1000;
  }
  .ports-panel.active {
    bottom: 0;
    transform: none;
  }
  .ports-panel.position-right,
  .ports-panel.position-left,
  .ports-panel.position-bottom {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    width: 100%;
    transform: none;
  }
  .ports-panel.position-right.active,
  .ports-panel.position-left.active,
  .ports-panel.position-bottom.active {
    bottom: 0;
    transform: none;
  }
  .ports-list {
    max-height: calc(60vh - 80px);
  }
}
/* Overlay для мобильных */
.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

@media (max-width: 768px) {
  .mobile-overlay.active {
    display: block;
  }
}
/*
@media (max-width: 450px) {
         .world-map {
            width: 100%;
            height: 500px;
            position: relative;
            border-radius: 10px;            
            background: transparent;
            overflow: hidden;
        }

        */