.flight-block {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  align-items: stretch;      /* important: make children same height */
}

.flight-map-container {
  flex: 2 1 0;
  display: flex;            /* so child map can stretch */
}

.flight-map {
  width: 100%;
  height: 100%;             /* JS will set container height */
  min-height: 200px;        /* safety so tiny tables still have some map */
}

.flight-details {
  flex: 1 1 0;
  max-width: 420px;
  overflow-x: auto;
}

@media (max-width: 768px) {
  .flight-block {
    flex-direction: column;
  }

  .flight-map-container,
  .flight-details {
    flex: none;
    max-width: 100%;
  }

  .flight-map {
    height: 300px;          /* on phones just pick a reasonable height */
  }
}

.flight-header {
  display: flex;
  align-items: center;
  justify-content: space-between; /* or flex-start + gap */
  gap: 8px;
}

.flight-header h2 {
  margin: 0;
}

.flight-header .copy-flight-link {
  flex-shrink: 0;
}