/**
 * VOYAGE POPUP STYLES - Styles pour les popups de voyage sur la carte d'accueil
 * Design moderne et responsive avec navigation intégrée
 */

/* Container principal du popup */
.voyage-popup-content {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  max-width: 300px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* En-tête du popup */
.voyage-popup-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(0deg, #017d7d 0%, #005b84 100%);
  color: #ffffff;
  position: relative;
}

.voyage-popup-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  pointer-events: none;
}

.voyage-flag {
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
  z-index: 1;
}

.voyage-popup-flag {
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

.voyage-info {
  flex: 1;
  min-width: 0;
  z-index: 1;
}

.voyage-title {
  margin: 0 0 4px 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  color: rgb(255, 255, 255);
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.voyage-destination {
  font-size: 0.85rem;
  opacity: 0.9;
  font-weight: 500;
}

/* Corps du popup */
.voyage-popup-body {
  padding: 16px;
  background: #fff;
}

.voyage-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.voyage-detail:last-child {
  margin-bottom: 0;
}

.detail-icon {
  font-size: 0.9rem;
  width: 18px;
  text-align: center;
  opacity: 0.8;
}

.detail-text {
  color: #4a5568;
  font-weight: 500;
}

/* Actions du popup */
.voyage-popup-actions {
  padding: 12px 16px 16px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.voyage-open-btn {
  width: 100%;
  padding: 10px 16px;
  background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(66, 153, 225, 0.3);
}

.voyage-open-btn:hover {
  background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(66, 153, 225, 0.4);
}

.voyage-open-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(66, 153, 225, 0.3);
}

/* Styles pour les popups Leaflet */
.leaflet-popup-content-wrapper {
  padding: 0 !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
}

.leaflet-popup-content {
  margin: 0 !important;
  line-height: 1.4 !important;
}

.leaflet-popup-tip {
  background: white !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .voyage-popup-content {
    max-width: 280px;
  }
  
  .voyage-popup-header {
    padding: 14px;
  }
  
  .voyage-title {
    font-size: 1rem;
  }
  
  .voyage-destination {
    font-size: 0.8rem;
  }
  
  .voyage-popup-body {
    padding: 14px;
  }
  
  .voyage-detail {
    font-size: 0.85rem;
    margin-bottom: 6px;
  }
  
  .voyage-popup-actions {
    padding: 10px 14px 14px;
  }
  
  .voyage-open-btn {
    padding: 12px 16px;
    font-size: 0.9rem;
  }
}

/* Responsive - Très petit écran */
@media (max-width: 480px) {
  .voyage-popup-content {
    max-width: 260px;
  }
  
  .voyage-flag {
    font-size: 1.8rem;
  }
  
  .voyage-title {
    font-size: 0.95rem;
  }
  
  .voyage-destination {
    font-size: 0.75rem;
  }
  
  .voyage-detail {
    font-size: 0.8rem;
  }
  
  .detail-icon {
    font-size: 0.8rem;
    width: 16px;
  }
}

/* Animation d'apparition */
.voyage-popup-content {
  animation: popupFadeIn 0.3s ease-out;
}

@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* États de focus et accessibilité */
.voyage-open-btn:focus {
  outline: 2px solid #4299e1;
  outline-offset: 2px;
}

/* Mode sombre (si supporté) */
@media (prefers-color-scheme: dark) {
  .voyage-popup-content {
    background: #2d3748;
    border-color: #4a5568;
  }
  
  .voyage-popup-body {
    background: #2d3748;
  }
  
  .detail-text {
    color: #e2e8f0;
  }
  
  .voyage-popup-actions {
    background: #1a202c;
    border-color: #4a5568;
  }
}

/* Amélioration du contraste pour l'accessibilité */
@media (prefers-contrast: high) {
  .voyage-popup-content {
    border: 2px solid #000;
  }
  
  .voyage-popup-header {
    background: #000;
    color: #fff;
  }
  
  .detail-text {
    color: #000;
    font-weight: 600;
  }
  
  .voyage-open-btn {
    background: #000;
    border: 2px solid #000;
  }
  
  .voyage-open-btn:hover {
    background: #333;
    border-color: #333;
  }
}