/* Базовые стили для всей страницы */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Comfortaa', cursive;
  background: #F5F7FA;
}

/* Основной контент - занимает всё свободное место */
.map-page {
  flex: 1 0 auto;
  padding: 20px 0 40px;
  background: #F5F7FA;
  width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px;
}

.map-header {
  text-align: center;
  margin-bottom: 20px;
}

.page-title {
  font-size: 24px;
  font-weight: 700;
  color: #1E3A8A;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.page-title i {
  color: #F59E0B;
  font-size: 24px;
}

.page-description {
  color: #6B7280;
  font-size: 13px;
}

/* Контейнер карты */
.route-map-container {
  width: 100%;
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid #E5E7EB;
  margin-bottom: 20px;
  background: #f0f2f5;
  position: relative;
}

/* Кнопки управления */
.map-controls {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.map-control-btn {
  width: 40px;
  height: 40px;
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  font-size: 18px;
  color: #1E3A8A;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-control-btn:active {
  transform: scale(0.95);
  background: #1E3A8A;
  color: white;
}

/* Информационная панель */
.airport-info-panel {
  background: white;
  border-radius: 20px;
  padding: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
  border-left: 4px solid #F59E0B;
  position: relative;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close-info {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #9CA3AF;
}

.close-info:active {
  color: #DC2626;
}

.airport-info-panel h3 {
  font-size: 18px;
  color: #1E3A8A;
  margin-bottom: 8px;
  padding-right: 30px;
}

.airport-info-panel p {
  color: #6B7280;
  font-size: 13px;
  margin-bottom: 15px;
}

.hub-badge {
  background: #F59E0B;
  color: #1E3A8A;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  display: inline-block;
  margin-left: 6px;
}

.destinations-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.dest-item {
  background: #F3F4F6;
  padding: 8px 14px;
  border-radius: 25px;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.dest-item:active {
  background: #1E3A8A;
  color: white;
  transform: scale(0.96);
}

.dest-item i {
  color: #F59E0B;
  font-size: 11px;
}

.dest-code {
  font-family: monospace;
  font-size: 10px;
  background: rgba(0,0,0,0.05);
  padding: 2px 6px;
  border-radius: 10px;
}

.btn-schedule {
  display: inline-block;
  background: #1E3A8A;
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  width: 100%;
  transition: all 0.2s;
}

.btn-schedule:active {
  background: #F59E0B;
  color: #1E3A8A;
  transform: scale(0.98);
}

/* Кнопка назад */
.back-link {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  color: #1E3A8A;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  border: 2px solid #1E3A8A;
  transition: all 0.2s;
}

.btn-secondary:active {
  background: #1E3A8A;
  color: white;
  transform: scale(0.98);
}

/* Адаптивность */
@media (max-width: 768px) {
  .map-page {
    padding: 15px 0 30px;
  }
  
  .route-map-container {
    height: 400px;
  }
  
  .map-controls {
    top: 10px;
    right: 10px;
    gap: 6px;
  }
  
  .map-control-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  
  .page-title {
    font-size: 20px;
  }
  
  .page-title i {
    font-size: 20px;
  }
  
  .page-description {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .route-map-container {
    height: 350px;
  }
  
  .map-controls {
    top: 8px;
    right: 8px;
    gap: 5px;
  }
  
  .map-control-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
}

@media (min-width: 768px) {
  .map-page {
    padding: 30px 0 50px;
  }
  
  .route-map-container {
    height: 550px;
  }
  
  .page-title {
    font-size: 28px;
  }
  
  .btn-schedule {
    width: auto;
    display: inline-block;
  }
}

@media (min-width: 1024px) {
  .route-map-container {
    height: 600px;
  }
  
  .page-title {
    font-size: 32px;
  }
}
