/* ==========================================================================
   EPJG Enhanced Flight Path Map - CSS Styles
   ========================================================================== */

/* ATZ Circle and Waypoint Styles */
.atz-circle { 
  stroke: #2563eb; 
  fill: rgba(37,99,235,0.08); 
}

.waypoint-label { 
  font-size: 0.8rem;
  font-weight: 700;
  background: #0f172a;
  color: #fff;
  padding: 2px 6px;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Unified Airplane Marker Styles */
.airplane-marker-container {
  /* Reset default leaflet marker styles */
}

.airplane-marker {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 10px;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transform: translate(-50%, -50%);
  font-family: Inter, system-ui, sans-serif;
  backdrop-filter: blur(4px);
}

.airplane-marker .airplane-icon {
  font-size: 14px;
  line-height: 1;
}

.airplane-marker .airplane-time {
  font-size: 11px;
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
}

/* Info Bar Styles (Bottom Panel) */
.info-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  font-family: Inter, system-ui, sans-serif;
}

.info-bar .pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(17,24,39,0.6);
  color: #fff;
  font-size: 0.75rem;
  line-height: 1.2;
  min-width: 60px;
}

.info-bar .pill .value {
  font-weight: 700;
  font-size: 0.85rem;
  color: #60a5fa;
  margin-bottom: 1px;
}

.info-bar .pill .label {
  color: #94a3b8;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Waypoint Badge Styles */
.epjg-waypoint-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #1f2937;
  background: #1f2937;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  font-family: Inter, system-ui, sans-serif;
}

.epjg-waypoint-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

/* Modal Close Button */
.close-btn {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #ef4444;
  font-size: 18px;
  width: 36px;
  height: 32px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: rgba(239,68,68,0.2);
  border-color: rgba(239,68,68,0.5);
}

/* Leaflet Tooltip and Popup Improvements */
.leaflet-tooltip {
  background: rgba(17,24,39,0.95) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 6px !important;
  padding: 6px 8px !important;
  font-family: Inter, system-ui, sans-serif !important;
  font-size: 0.75rem !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}

.leaflet-popup-content-wrapper {
  border-radius: 8px !important;
  padding: 0 !important;
}

.leaflet-popup-content {
  margin: 0 !important;
  line-height: 1.4 !important;
  font-family: Inter, system-ui, sans-serif !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

.leaflet-popup-tip {
  background: #fff !important;
}

/* Modal Layout Improvements */
#modal-content {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  min-height: 0 !important;
}

#modal-map-wrapper {
  position: relative !important;
  flex: 1 !important;
  min-height: 0 !important;
}

#modal-map-container {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
}

.playback-controls {
  flex: 0 0 auto !important;
  background: rgba(17,24,39,0.95) !important;
  border-top: 1px solid rgba(255,255,255,0.1) !important;
}

.playback-controls input[type="range"] {
  background: rgba(17,24,39,0.6) !important;
  border-radius: 8px !important;
  height: 8px !important;
  outline: none !important;
}

.playback-controls input[type="range"]::-webkit-slider-thumb {
  appearance: none !important;
  width: 16px !important;
  height: 16px !important;
  border-radius: 50% !important;
  background: #60a5fa !important;
  cursor: pointer !important;
  border: 2px solid #fff !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
}

.playback-controls input[type="range"]::-moz-range-thumb {
  width: 16px !important;
  height: 16px !important;
  border-radius: 50% !important;
  background: #60a5fa !important;
  cursor: pointer !important;
  border: 2px solid #fff !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
}

#info-bar-container {
  flex: 0 0 auto !important;
  background: rgba(17,24,39,0.95) !important;
  border-top: 1px solid rgba(255,255,255,0.1) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .info-bar {
    gap: 0.25rem !important;
  }
  
  .info-bar .pill {
    min-width: 50px !important;
    padding: 0.2rem 0.4rem !important;
  }
  
  .info-bar .pill .value {
    font-size: 0.75rem !important;
  }
  
  .info-bar .pill .label {
    font-size: 0.6rem !important;
  }
  
  .airplane-marker {
    padding: 2px 4px !important;
  }
  
  .airplane-marker .airplane-time {
    font-size: 10px !important;
  }
}